Attributes | |||
Attributes provide additional information about an element. An attribute is a name and value pair within the start tag of an element. The syntax of an attribute is: attribute_name=”attribute_value” In the preceding syntax, attribute_name represents the name of an attribute and attribute_value represents a value for the attribute. You must ensure that attribute_value is always enclosed within double or single quotes. Like tags, attributes can have any name or value. In the following code snippet, body is the start tag name, type is the attribute name, and text without graphic is the attribute value. This attribute and value pair indicate that the body of the message contains no graphic. <body type=”text without graphic”> |
|
||
Click the Next button to continue. |