This editor is available from the Attributes tab of the Configuration Editor.
This editor allows you to add new attributes and reconfigure existing ones. It is also used to assign attributes to the attributes list of the tag name being configured and to specify the valid attributes for a tag name.
For example, to add an attribute to a tag:
1.Select the tag that you want to add an attribute to in the Tag Name Being Configured combo box. A list of currently assigned attributes of the tag now appears in the Tag attributes list box.
2.From the Attributes list box, double-click the attribute that you want to add to the tag. The attribute should now appear in the Tag attributes list box.
3.If the attribute you want to add does not exist, then you can add it by typing it in the edit box and then pressing the New Attribute button. Assign a category to the new attribute using the Attribute category combo box and use the Attribute Values tab to assign the values that this attribute can have.
•Attributes - Contains a list of all possible attributes that can be assigned to tag names. See below for the buttons used to add and delete attributes to and from this list box.
(ignore all) - Any tag name with this built-in attribute assigned to its tag attributes will cause HTML Validator to ignore all attributes and attribute values of that tag name, regardless of any other attributes assigned. If the tag name is considered valid, then all of its attributes and attribute values are considered valid.
•Tag attributes - Contains a list of tag attributes that are valid for the selected tag name being configured. To remove an attribute from the Tag attributes list box, select the attribute to remove and click the delete button (<-) or double-click the attribute to remove it. To add an attribute to the Tag attributes list box, select the attribute to add from the Attributes list box and click the add button (->) or double-click the attribute to add it.
•Tag Name Being Configured - Use this combo box to select the tag name that you want to add and remove attributes to and from. The tag selected here is the tag whose configuration is being displayed and edited.
•Attribute category - Use this combo box to select which tag category the selected attribute in the Attributes list box belongs to. The attribute will only be valid when the selected category is an active category.
•New Attribute - Press this button to add a new attribute to the Attributes list box. The attribute that is added is the string contained in the edit box above the New Attribute button. Note that the attribute may not contain spaces.
•Delete Attribute - Press this button to delete the selected attribute or attribute group in the Attributes list box. Built-in tag attributes cannot be deleted. Also note that if you delete an attribute, then all tag names that are assigned the deleted attribute will no longer be assigned the attribute.
•Required attribute - Check this box if the selected attribute in the Attributes list box must be used with any tag name assigned the selected attribute. An error message will be generated if the attribute is not used when the tag name is used. This option is not enabled by default.
•Warn if missing - Check this box if the selected attribute in the Attributes list box "should" be used with any tag name assigned the selected attribute. A warning message will be generated if the attribute is not used when the tag name is used. This option has no effect if Required attribute is checked. This option is not enabled by default.
•Display message when used - Check this box if you want HTML Validator to display the message in the Message When Used edit box when the selected attribute is used in an HTML document. This allows specific messages to be displayed to the user depending on the attributes used in the HTML document being validated. This option is not enabled by default.
•Disp. msg when doesn't validate - Check this box if you want HTML Validator to display the message in the Message When Doesn't Validate edit box when the selected attribute is used but has an invalid value. This allows specific messages to be displayed to the user depending on the attributes and attribute values in the HTML document being validated. Note that this message will not be displayed if the reason a value isn't valid is because it did not meet the quotation requirements. This option is not enabled by default.
Visit the Config Editor General Information topic for more information about the 'Message When' edit boxes.