Summary of common HTML attribute knowledge points

php中世界最好的语言
Release: 2018-04-19 17:41:20
Original
2123 people have browsed it

This time I will bring you a summary of common HTML attribute knowledge points. What are theprecautionswhen 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:

a link

HTML links are defined by thetag, 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
(New)
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
(New) 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
(New) Define command buttons, such asradio buttons, checkboxes or buttons
(New) 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
(New) 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
(New) Define embedded content, such as plug-ins.
Define the border around elements in the form
(New)
Define the title of the
element
(New)
Specify individual stream content (images, charts, photos, code, etc.).
HTML5 is not supported and deprecated. Define the font, size and color of the text.
(New)
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
(New)
Defines the header area of the document

Define horizontal line
Define HTML document
Define italics