Home > Article > Web Front-end > Summary of common HTML attribute knowledge points
This time I will bring you a summary of common HTML attribute knowledge points. What are the precautions when using common HTML attributes? The following is a practical case, let’s take a look.
In HTML, attributes are also more important for the entire HTML content. So how much do you know about HTML attributes? What are the attributes of HTML? The following article will give you a detailed introduction to the properties of HTML.
Definition:
HTML attributes: additional information provided by HTML elements
Simple understanding of HTML attributes:
1.HTML elements can set attributes
2. Attributes can add additional information to elements
3. General description and start tag of attributes
4. Attributes always appear in the form of names or value pairs, for example: name: "value"
Simple example to understand attributes:
HTML links are defined by the tag, and the link's address is specified in the href attribute.
HTML common reference attribute values:
Property values should always be enclosed in quotes.
Double quotes are the most commonly used, but there is no problem using single quotes.
Note: In some individual cases, such as the attribute value itself contains double quotes, you must use single quotes, for example: name='John "ShotGun" Nelson'
HTML Tip: Use lowercase attributes
Properties and property values are not case-sensitive.
However, the World Wide Web Consortium recommends lowercase attributes/attribute values in its HTML 4 recommendations.
Newer versions of (X)HTML require lowercase attributes.
HTML Attributes Reference Manual
Label | describe |
---|---|
Define comments | |
Define document type | |
Define hypertext links | |
Define abbreviation | |
The definition only takes the first letter of the abbreviation, and does not support HTML5 | |
Defines the contact information for the document author or owner | |
Deprecated in HTML5. Define embedded applets. | |
Define the area inside the image map | |
|
Define an article area |
Define the sidebar content of the page | |
Define audio content | |
Define text bold | |
|
Defines the default address or default target for all links in the page. |
|
HTML5 is not supported and deprecated. Define the default font, color, or size for text on the page. |
(New) | Allows you to set a piece of text independent of the text direction setting of its parent element. |
Define text direction | |
Define large text, HTML5 does not support | |
|
Define long references |
Define the body of the document | |
|
Define newline |
Define a click button | |
To define graphics, such as charts and other images, labels are just graphics containers and you must use scripts to draw the graphics | |
|
Define table title |
|
HTML5 is not supported and deprecated. Define centered text. |
Define citation | |
|
Define computer code text |
|
Define attribute values for one or more columns in the table |
|
Define column groups in the table for formatting |
|
Define command buttons, such as radio buttons, checkboxes or buttons |
Define a list of options. Use this element in conjunction with an input element to define the possible values of the input. | |
|
Define the description of the item in the definition list |
|
Define deleted text |
(New)
|
Details used to describe a document or part of a document |
Definition definition project | |
Define dialog boxes, such as prompt boxes | |
|
HTML5 is not supported and deprecated. Define directory listing. |
|
Define sections in the document |
|
Definition list details |
|
Define items in list |
Define emphasis text | |
Define embedded content, such as plug-ins. | |
Define the border around elements in the form | |
|
Define the title of the |
Specify individual stream content (images, charts, photos, code, etc.). | |
HTML5 is not supported and deprecated. Define the font, size and color of the text. | |
Defines the footer of a section or document. | |
Form that defines the HTML document | |
Define the window or frame of the frameset | |
Define frameset | |
to |
Define HTML title |
Define information about the document | |
|
Defines the header area of the document |
|
Define horizontal line |
Define HTML document | |
Define italics | |
Define inline frames | |
Define image | |
Define input controls | |
Definition of inserted text | |
Define keyboard text | |
|
Specifies the key pair generator field to use on the form. |
Define the annotation of the input element | |
Defines the title of the fieldset element. | |
|
Define the items of the list |
Define the relationship between documents and external resources | |
Define image mapping | |
(New) |
Defines text with tokens. Please use the |
Deprecated. Define menu list. | |
Defines meta-information about the HTML document. | |
|
Define weights and measures. Use only for measurements with known maximum and minimum values. |
Define the section of the navigation link | |
|
Define alternative content for users who don't support the framework. HTML5 is not supported |
Define alternative content for users who do not support client-side scripting. | |
Define embedded objects | |
|
Define an ordered list. |
Defines a combination of related options in a selection list. | |
Define the options in the selection list. | |
Define different types of output, such as script output. | |
|
Define paragraph. |
Define the parameters of the object. | |
|
Define preformatted text. |
Define the running progress (process). | |
|
Define short quotes. |
The | |
(New) | tag defines ruby comments (Chinese pinyin or characters). |
|
Deprecated. Defines strikethrough text. |
Define computer code samples. | |
|