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. | |
![]() Hot AI Tools![]() Undresser.AI UndressAI-powered app for creating realistic nude photos ![]() AI Clothes RemoverOnline AI tool for removing clothes from photos. ![]() Undress AI ToolUndress images for free ![]() Clothoff.ioAI clothes remover ![]() Video Face SwapSwap faces in any video effortlessly with our completely free AI face swap tool! ![]() Hot Article
Assassin's Creed Shadows: Seashell Riddle Solution
3 weeks ago
By DDD
What's New in Windows 11 KB5054979 & How to Fix Update Issues
2 weeks ago
By DDD
Where to find the Crane Control Keycard in Atomfall
3 weeks ago
By DDD
Assassin's Creed Shadows - How To Find The Blacksmith And Unlock Weapon And Armour Customisation
1 months ago
By DDD
Roblox: Dead Rails - How To Complete Every Challenge
3 weeks ago
By DDD
![]() Hot Tools![]() Notepad++7.3.1Easy-to-use and free code editor ![]() SublimeText3 Chinese versionChinese version, very easy to use ![]() Zend Studio 13.0.1Powerful PHP integrated development environment ![]() Dreamweaver CS6Visual web development tools ![]() SublimeText3 Mac versionGod-level code editing software (SublimeText3) ![]() Hot Topics
CakePHP Tutorial
![]() ![]() ![]() Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML. ![]() Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation. ![]() This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples. ![]() Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail. ![]() Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs. ![]() Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement. ![]() Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively ![]() Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively. ![]() |