Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the common grammars in HTML5

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article is to share with you what are the common grammars in HTML5. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

List of commonly used syntax in HTML 5 (list unsupported attributes)

HTML header tag

The tag describes the benchmark URL for all links in the HTML5 standard definition page

Sets the title content that is displayed at the top left of the browser

Indicates that the document is a gateway script that can be used for retrieval and does not support meta-information of the document itself, such as query keywords, validity period, etc.

Set the contents of the CSS cascading style sheet

Set links to external resources

Page script content

Meta-information tag attribute

Tag description value HTML5 Standard http-equiv

Generate a HTTP standard field and associate the Content attribute to the HTTP header

Content-type / expires / refresh / set-cookie

Name

Associate the content attribute to a name

Author / description / keywords / generator / revised / others

Content defines meta-information keyword / value content related to http-equiv or name attributes

Character Encoding of charset documents

New attribute

Note: scheme attribute is not supported in HTML5. New charset attribute is added. For more information: HTML5 tag

HTML body tag attribute

Property description HTML5 standard text setting page text color deletion bgcolor setting page background color deletion background setting page background image deletion bgproperties setting page background image is fixed Do not scroll with the page delete link settings page default link color delete alink settings mouse click link color delete vlink settings link color delete topmargin settings page top margin delete leftmargin settings page left margin deletion

Note: in HTML 5, all special attributes have been removed. For more information: HTML5 tag

Special symbol

The special symbol number "" & & ©©®®±±* * special symbol number "

Thank you. ™™

Title word mark

Description of the tag. First-level title. Second-level title. The third-level title. Level 4 title. Five-level title. Level 6 title

Note: check HTML5 to tag for details

In HTML 4.01, the "align" attribute of the H2-H7 element is not approved.

In HTML 5, the "align" attribute of the H2-H7 element is not supported.

The embellishment mark of a text

Tag describes HTML5 standard bold

Bold type

Italic

Italic

Italic

Superscript

Subscript

Large font size does not support small font size does not support underlining does not support delete line does not support delete line does not support address

Typewriter text does not support flicker text (Netscape browsers only) does not support equal width

Equal width

Keyboard input text

Declare variable

Font tag Properti

Attribute description HTML5 standard face font does not support size font size does not support color color does not support

Note: please check the HTML 5 label

In HTML 4.01, the use of this element is not recommended.

In HTML 5, this element is not supported, but it is allowed to be inserted by a WYSIWYG editor.

In HTML 5, only the style attribute is supported.

List tag

Tag describes the HTML5 standard unordered list

Ordered list

Directory list does not support defining list

Menu list is redefined; use to arrange form controls

Define the tag for the list

Tags for list items

Hyperlink tag

Property description HTML5 standard href specify link address

Name names an anchor for the link. It is not supported. Use id instead of title to prompt the link text.

Target specifies the target window for the link

Link target window property target

The property value description _ parent opens in the upper window. Generally, frame pages often use _ blank to open in a new window. _ self opens in the same frame or window. By default, _ top opens in the entire window of the browser, ignoring any frames.

Picture mark

Attribute

Attribute describes the source file of the HTML5 standard src image

Alt prompt text

Width, height width, height

Border frame does not support vspace vertical spacing does not support hspace horizontal spacing does not support align arrangement does not support

Picture arrangement align attribute value

The middle line of the attribute value description HTML5 standard top text is above the picture

The middle line of the middle text is in the middle of the picture.

The middle line of the bottom text is at the bottom of the picture.

The left picture is on the left side of the text

The right picture is on the right side of the text

The bottom line of absbottom text is at the bottom of the picture.

The bottom line of absmiddle text is in the middle of the picture.

Baseline English text baseline alignment

Texttop English text top line alignment

Note: please check HTML 5

Label

Table tag

Tag description. Form tag. Line markup. Cell tag

Note: in HTML 5

No attributes of the tag are supported.

No attributes of the tag are supported.

Only the tag "colspan" and "rowspan" attributes are supported.

Form tag Properties

Note:

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

Form tag element

The tag description HTML5 standard form input tag type attribute has many new values. Menu and list tags New properties menu and list item tags can be used for new elements to mark new attributes in the field

Enter the value of the tag tag attribute Type

Describe the HTML5 standard text text field

Password password domain

File file domain

Checkbox check box

Radio radio box

Button normal button

Submit submit button

Reset reset button

Hidden hidden domain

Image image field (image submit button)

Frame Ta

Frame tag description HTML5 standard frameset does not support frames do not support inline frames only support src attributes no frames do not support

Note: please check the HTML 5 label

The tag is not supported in HTML 5 because of its negative impact on web usability.

Thank you for reading! This is the end of this article on "what are the commonly used grammars in HTML5?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report