Home  >  Article  >  Web Front-end  >  What are html attributes

What are html attributes

藏色散人
藏色散人Original
2021-04-29 15:09:342855browse

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 "".

What are html attributes

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn