Attributes provide additional information to an HTML element.
HTML Tag AttributesHTML tags can have attributes. Attributes provide additional information to an HTML element.
Attributes always come in name/value pairs like this: name="value".
Attributes are always specified in the start tag of an HTML element.
Attributes Example 1:
defines the start of a heading.
has additional information about the alignment.
Try it yourself: Center aligned heading
Attributes Example 2:
defines the body of an HTML document.
has additional information about the background color.
Try it yourself: Background color
Attributes Example 3:
Try it yourself: Center aligned heading
Attributes Example 2:
defines the body of an HTML document.
has additional information about the background color.
Try it yourself: Background color
Attributes Example 3:
0 comments:
Post a Comment