Home > Article > Web Front-end > What are html attributes
Attributes provide additional information for HTML elements. HTML tags can have attributes, which provide more information about HTML elements; attributes always appear in the form of name/value pairs, such as "name="value "".
The operating environment of this article: Windows 7 system, HTML5 version, Dell G3 computer.
Attributes provide additional information to HTML elements.
HTML Attributes
HTML tags can have attributes. Attributes provide more information about HTML elements.
Attributes always appear in the form of name/value pairs, such as: name="value".
Attributes are always specified in the opening tag of an HTML element.
Attribute Example
HTML links are defined by the 3499910bf9dac5ae3c52d5ede7383485 tag. The link address is specified in the href attribute:
<a href="http://www.php.cn">This is a link</a>
For more detailed HTML/CSS knowledge, please visit the HTML Video Tutorial column!
The above is the detailed content of What are html attributes. For more information, please follow other related articles on the PHP Chinese website!