List of common HTML 5 syntaxes (list unsupported attributes)

Source: Internet
Author: User
Tags html header unsupported

HTML header tag

Mark Description HTML5 Standard
<Base> Define the reference URLs of all links on the page
<Title> Set the title content displayed in the upper-left corner of the browser
<Isindex> Indicates that this document is a gateway script that can be used for retrieval. Not Supported
<Meta> Meta Information of the document, such as query keywords and Validity Period
<Style> Set CSS Cascading Style Sheet content
<Link> Set external resource links
<Script> Page script content

 

Metadata tag <meta> attribute

Mark Description Value HTML5 Standard
Http-equiv

Generate an HTTP standard domain and associate the Content attribute with the HTTP header.

Content-type/expires/refresh/set-cookie

Name

Associate the content attribute with a name

Author/description/keywords/generator/revised/others

Content Defines metadata keywords/values related to http-equiv or name attributes
Charset Document character encoding Add attribute

 

Note: The scheme attribute is not supported in HTML5. The charset attribute is added. For details, see HTML5 <meta> label.

 

HTML subject tag <body> attribute

Attribute Description HTML5 Standard
Text Set page text color Delete
Bgcolor Set page background color Delete
Background Set page background image Delete
Bgproperties Set the background image of the page to be fixed and do not scroll with the page Delete
Link Set the default link color of the page Delete
Alink Set the link color when the mouse is clicked Delete
Vlink Set the link color after access Delete
Topmargin Set the top margin of the page Delete
Leftmargin Set the left margin of the page Delete

 

Note: In HTML 5, all special attributes of <body> are deleted. For details, see HTML5 <body> labels.

 

  

Special symbols

Special symbols Rune number
" & Quot;
& & Amp;
< & Lt;
> & Gt;
& Copy;
& Reg;
± & Plusmn;
× & Times;
§ & Sect;
Bytes & Cent;
¥ & Yen;
· & Middot;
& Euro;
£. & Pound;
& Trade;

 

 

Title word mark

Mark Description
<H1>... Level 1 title
<H2>... Level 2 Title
<H3>... Level 3 title
<H4>... Level 4 title
<H5>... Level 5 Title
<H6>... Level 6 Title

 

Note: For more information, see HTML5

In HTML 4.01, the "align" attribute of the h1-h6 element is not supported.

In HTML 5, the "align" attribute of the h1-h6 element is not supported.

 

Text Modifier

Mark Description HTML5 Standard
<B> Bold
<Strong> Bold
<I> Italics
<Em> Italics
<Cite> Italics
<Sup> Superscript
<Sub> Subscript
<Big> Font Size Not Supported
<Small> Small font size Not Supported
<U> Underline Not Supported
<S> Strikethrough Not Supported
<Strike> Strikethrough Not Supported
<Address> Address
<Tt> Typewriter text Not Supported
<Blink> Flashing Text (only available in the Netscape browser) Not Supported
<Code> Equal width
<Samp> Equal width
<Kbd> Enter text on the keyboard
<Var> Declare Variables

 

 

Font Tag <font> attribute

Attribute Description HTML5 Standard
Face Font Not Supported
Size Font Size Not Supported
Color Color Not Supported

 

Note: See HTML 5 <font> labels.

This element is not supported in HTML 4.01.

This element is not supported in HTML 5, but can be inserted in the WYSIWYG editor.

In HTML 5, only the style attribute is supported.

 

List tag

Mark Description HTML5 Standard
<Ul> Unordered list
<Ol> Ordered list
<Dir> Directory List Not Supported
<Dl> Definition list
<Menu> Menu list Redefinition; used to arrange Form Controls

<Dt>, <dd>

Define the tag of the List
<Li> Mark a list item

 

Hyperlink tag

Attribute Description HTML5 Standard
Href Link address
Name Name the link Naming an anchor is not supported. Use id instead.
Title Prompt text for Link
Target Target window of the specified Link

Link target window property target

Attribute Value Description
_ Parent Open in the upper-level window. Generally, frame pages are often used.
_ Blank Open in new window
_ Self Open in the same frame or window, default
_ Top Open in the entire window of the browser and ignore any framework

 

 

Image Tag attribute

Attribute Description HTML5 Standard
Src Source image files
Alt Prompt text
Width and height Width and height
Border Border Not Supported
Vspace Vertical spacing Not Supported
Hspace Horizontal spacing Not Supported
Align Arrange Not Supported

Align attribute values

Attribute Value Description HTML5 Standard
Top The middle line of the text is above the image  
Middle The middle line of the text is in the middle of the image  
Bottom The middle line of the text is at the bottom of the image  
Left The image is on the left side of the text.  
Right The image is on the right of the text
Absbottom Bottom line of text is at the bottom of the image
Absmiddle Bottom line of text in the middle of the image
Baseline English text baseline alignment
Texttop Alignment of English text

 

Note: Please view the HTML 5 tag

 

Table tag

Mark Description
<Table>... </table> Table tag
<Tr>... </tr> Row mark
<Td>... </td> Cell tag

Note: In HTML 5,

Any attribute of the <table> label is not supported.

Any attribute of the <tr> label is not supported.

Only the <td> <th> label "colspan" and "rowspan" attributes are supported.

Form tag <form> attribute

Note:

There is a new attribute in HTML 5: replace. It defines what the form will do after it is submitted.

Form tag <form> element

Mark Description HTML5 Standard
<Input> Form input tag The type attribute has many new values.
<Select> Menu and list tag New attribute
<Option> Menu and list item tag It can be used in the new element <datalist>
<Textarea> Text Field mark New attribute

 

 

Enter the value of <input> tag attribute Type

<Input Type = "property value"/> Description HTML5 Standard
Text Text Field
Password Password domain
File File domain
Checkbox Check box
Radio Single region
Button Normal button
Submit Submit button
Reset Reset button
Hidden Hide domain
Image Image domain (image submission button)

 

Frame tag

Frame tag Description HTML5 Standard
<Frameset> Framework set Not Supported
<Frame> Framework Not Supported
<Iframe> Inline framework Only the src attribute is supported.
<Noframe> No Frame Not Supported

Note: See the HTML 5 <frameset> tag.

The <frameset> tag in HTML 5 is not supported because of its negative impact on web page availability.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.