📜  HTML5-新标签(元素)

📅  最后修改于: 2020-10-23 06:32:20             🧑  作者: Mango


HTML5中引入了以下标记(元素)-

Tags (Elements) Description
Represents an independent piece of content of a document, such as a blog entry or newspaper article
Represents a piece of content that is only slightly related to the rest of the page.
Defines an audio file.
This is used for rendering dynamic bitmap graphics on the fly, such as graphs or games.
Represents a command the user can invoke.
Together with the a new list attribute for input can be used to make comboboxes
Represents additional information or controls which the user can obtain on demand
Defines external interactive content or plugin.
Represents a piece of self-contained flow content, typically referenced as a single unit from the main flow of the document.
Represents a footer for a section and can contain information about the author, copyright information, et cetera.
Represents a group of introductory or navigational aids.
Represents the header of a section.
Represents control for key pair generation.
Represents a run of text in one document marked or highlighted for reference purposes, due to its relevance in another context.
Represents a measurement, such as disk usage.
Represents a section of the document intended for navigation.
Represents some type of output, such as from a calculation done through scripting.
Represents a completion of a task, such as downloading or when performing a series of expensive operations.
Together with and allow for marking up ruby annotations.
Represents a generic document or application section
Represents a date and/or time.
Defines a video file.
Represents a line break opportunity.

标签的新类型

输入元素的type属性现在具有以下新值-

Type Description
color Color selector, which could be represented by a wheel or swatch picker
date Selector for calendar date
datetime-local Date and time display, with no setting or indication for time zones
datetime Full date and time display, including a time zone.
email Input type should be an email.
month Selector for a month within a given year
number A field containing a numeric value only
range Numeric selector within a range of values, typically visualized as a slider
search Term to supply to a search engine. For example, the search bar atop a browser.
tel Input type should be telephone number.
time Time indicator and selector, with no time zone information
url Input type should be URL type.
week Selector for a week within a given year