Attributes part 1

HTML Attributes



Attributes provide additional informationabout an element or a tag, while also modifying them. Most attributes have a value; the value modifies the attribute.
<p align="center">
This text is aligned to center
</p>
Try It Yourself

In this example, the value of "center" indicates that the content within the p element should be aligned to the center:
Attributes are always specified in the start tag, and they appear in name="value" pairs.

Comments