Found 236 pages:
| # | Page | 标签和摘要 |
|---|---|---|
| 1 | HTML:超文本标记语言 | HTML, HTML5, Landing, Web, l10n:priority |
| HTML (超文本标记语言) 是最基本的 Web 构建块。它定义 Web 内容的含义和结构。HTML 外的其它技术,通常用于描述 Web 页面的外观/呈现 ( CSS ) 或功能/行为 ( JavaScript ). | ||
| 2 | Allowing cross-origin use of images and canvas | Advanced, CORS, Canvas, HTML, Image, Reference, Security, Storage, data |
HTML provides a
crossorigin
attribute for images that, in combination with an appropriate
CORS
header, allows images defined by the
<img>
element that are loaded from foreign origins to be used in a
<canvas>
as if they had been loaded from the current origin.
|
||
| 3 | 使用 CSS 将颜色应用到 HTML 元素 | Beginner, CSS, CSS Colors, Guide, HTML, HTML Colors, HTML Styles, Styling HTML, color |
| 采用 CSS , there are lots of ways to add color to your HTML 元素 to create just the look you want. This article is a primer introducing each of the ways CSS color can be used in HTML. | ||
| 4 | Block-level elements | Beginner, Development, Guide, HTML, HTML5, Web |
| A Block-level element occupies the entire horizontal space of its parent element (container), and vertical space equal to the height of its contents, thereby creating a "block". | ||
| 5 | 用于 HTML 的日期和时间格式 | Date, Element, Format, HTML, ISO 8601, Input, Reference, String, Time, Week, datetime, datetime-local, del, ins, month, month-year, week-year |
| Certain HTML elements use date and/or time values. The formats of the strings that specify these values are described in this article. | ||
| 6 | 全局属性 | Attribute, HTML, Reference, Web |
| 全局属性 are attributes common to all HTML elements; they can be used on all elements, though they may have no effect on some elements. | ||
| 7 | accesskey | Global attributes, HTML, Reference, accesskey |
accesskey
global attribute
provides a hint for generating a keyboard shortcut for the current element. The attribute value must consist of a single printable character (which includes accented and other characters that can be generated by the keyboard).
|
||
| 8 | autocapitalize | Autocapitalize, Global attributes, HTML, Reference |
autocapitalize
global attribute
is an enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
||
| 9 | class | Global attributes, HTML, Reference |
class
global attribute
is a space-separated list of the case-sensitive classes of the element. Classes allow CSS and Javascript to select and access specific elements via the
class selectors
or functions like the DOM method
document.getElementsByClassName
.
|
||
| 10 | contenteditable | Editing, Global attributes, HTML, Reference, Text Editing, contenteditable, text entry, text input |
contenteditable
global attribute
is an enumerated attribute indicating if the element should be editable by the user. If so, the browser modifies its widget to allow editing.
|
||
| 11 | contextmenu | Deprecated, Global attributes, HTML, Reference, contextmenu |
contextmenu
global attribute
是
id
的
<menu>
to use as the contextual menu for this element.
|
||
| 12 | data-* | Global attributes, HTML, Reference |
data-*
全局属性
form a class of attributes called
自定义数据属性
, that allow proprietary information to be exchanged between the
HTML
及其
DOM
representation by scripts.
|
||
| 13 | dir | BiDi, Global attributes, HTML, Reference |
dir
global attribute
is an enumerated attribute that indicates the directionality of the element's text.
|
||
| 14 | draggable | Global attributes, HTML, Reference |
| draggable global attribute is an enumerated attribute that indicates whether the element can be dragged, either with native browser behavior or the HTML 拖放 API . | ||
| 15 | dropzone | Deprecated, Global attributes, HTML, Reference |
dropzone
global attribute
is an enumerated attribute indicating what types of content can be dropped on an element, using the
HTML 拖放 API
. It can have the following values:
|
||
| 16 | hidden | Global attributes, HTML, Reference |
hidden
global attribute
is a Boolean attribute indicating that the element is not yet, or is no longer,
relevant
. For example, it can be used to hide elements of the page that can't be used until the login process has been completed.
|
||
| 17 | id | Global attributes, HTML, Reference, Web, id |
id
global attribute
defines an identifier (ID) which must be unique in the whole document. Its purpose is to identify the element when linking (using a
fragment identifier
), scripting, or styling (with
CSS
).
|
||
| 18 | inputmode | Attribute, Editing, Forms, Global attributes, HTML, Input, Reference, Text, Web, contenteditable, global, inputmode, text input |
inputmode
global attribute
is an enumerated attribute that hints at the type of data that might be entered by the user while editing the element or its contents.
|
||
| 19 | is | Global attributes, HTML, Reference, is |
is
global attribute
allows you to specify that a standard HTML element should behave like a defined custom built-in element (see
Using custom elements
了解更多细节)。
|
||
| 20 | itemid | Attribute, Global attribute, HTML, HTML Microdata, Microdata, Reference, itemid |
itemid
global attribute
provides microdata in the form of a unique, global identifier of an item.
|
||
| 21 | itemprop | Attribute, Global attribute, HTML, HTML Microdata, Microdata, Reference |
itemprop
global attribute
is used to add properties to an item. Every HTML element can have an
itemprop
attribute specified, and an
itemprop
consists of a name-value pair. Each name-value pair is called a
property
, and a group of one or more properties forms an
item
. Property values are either a string or a URL and can be associated with a very wide range of elements including
<audio>
,
<embed>
,
<iframe>
,
<img>
,
<link>
,
<object>
,
<source>
,
<track>
,和
<video>
.
|
||
| 22 | itemref | Attribute, Global attribute, HTML, HTML Microdata, Microdata, Reference |
Properties that are not descendants of an element with the
itemscope
attribute can be associated with an item using the
global attribute
itemref
.
|
||
| 23 | itemscope | Attribute, Global attribute, HTML, HTML Microdata, Microdata, Reference |
itemscope
is a boolean
global attribute
that defines the scope of associated metadata. Specifying the
itemscope
attribute for an element creates a new item, which results in a number of name-value pairs that are associated with the element.
|
||
| 24 | itemtype | Attribute, Global attribute, HTML, HTML Microdata, Microdata, Reference |
global attribute
itemtype
specifies the URL of the vocabulary that will be used to define
itemprop
's (item properties) in the data structure.
|
||
| 25 | lang | Global attributes, HTML, Reference |
lang
global attribute
helps define the language of an element: the language that non-editable elements are written in, or the language that the editable elements should be written in by the user. The attribute contains a single “language tag” in the format defined in
Tags for Identifying Languages (BCP47)
.
|
||
| 26 | part | Global attributes, HTML, Reference, part |
part
global attribute
contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the
::part
pseudo-element.
|
||
| 27 | slot | Global attributes, HTML, Reference |
slot
global attribute
assigns a slot in a
shadow DOM
shadow tree to an element: An element with a
slot
attribute is assigned to the slot created by the
<slot>
element whose
name
attribute's value matches that
slot
attribute's value.
|
||
| 28 | spellcheck | Global attributes, HTML, Reference |
spellcheck
global attribute
is an enumerated attribute defines whether the element may be checked for spelling errors.
|
||
| 29 | style | Global attributes, HTML, Reference |
style
global attribute
包含
CSS
styling declarations to be applied to the element. Note that it is recommended for styles to be defined in a separate file or files. This attribute and the
<style>
element have mainly the purpose of allowing for quick styling, for example for testing purposes.
|
||
| 30 | tabindex | Global attributes, HTML, Reference |
tabindex
global attribute
indicates that its element can be focused, and where it participates in sequential keyboard navigation (usually with the
Tab
key, hence the name).
|
||
| 31 | title | Global attributes, HTML, Reference, Title |
title
global attribute
contains text representing advisory information related to the element it belongs to.
|
||
| 32 | translate | Experimental, Global attributes, HTML, Reference |
translate
global attribute
is an enumerated attribute that is used to specify whether an element's
translateable attribute
values and its
文本
node children should be translated when the page is localized, or whether to leave them unchanged.
|
||
| 33 | x-ms-acceleratorkey | Attribute, HTML, HTML:Microsoft Extensions, Non-standard, Reference, x-ms-acceleratorkey |
x-ms-acceleratorkey
attribute accessibly declares that an
accelerator key
has been assigned to an element: the element is activated via JavaScript when the key(s) are pressed on a keyboard.
|
||
| 34 | x-ms-format-detection | Attribute, HTML, HTML:Microsoft Extensions, Non-standard, Reference, x-ms-format-detection |
x-ms-format-detection
attribute determines whether data formats within the element’s text, like phone numbers, are automatically converted to followable links.
|
||
| 35 | HTML 属性参考 | Attribute, Attributes, Beginner, Configuring, Element Attributes, Elements, HTML, Reference, Settings, Web |
| Elements in HTML have 属性 ; these are additional values that configure the elements or adjust their behavior in various ways to meet the criteria the users want. | ||
| 36 | HTML attribute: accept | Accept, Attribute, File, HTML, Input, Reference |
accept
attribute takes as its value a comma-separated list of one or more file types, or
unique file type specifiers
, describing which file types to allow.
|
||
| 37 | HTML attribute: capture | API, Attribute, Attributes, Capture, Constraint validation, HTML |
capture
attribute specifies that, optionally, a new file should be captured, and which device should be used to capture that new media of a type defined by the
accept
属性。
Values include
user
and
environment
.
|
||
| 38 | HTML attribute: crossorigin | Advanced, Attribute, CORS, HTML, NeedsContent, Reference, Security |
The crossorigin attribute, valid on the
<audio>
,
<img>
,
<link>
,
<script>
,和
<video>
elements, provides support for
CORS
, defining how the element handles crossorigin requests, thereby enabling the configuration of the CORS requests for the element's fetched data. Depending on the element, the attribute can be a CORS settings attribute.
|
||
| 39 | HTML attribute: max | Attribute, Attributes, Constraint validation, HTML, Reference |
max
attribute defines the maximum value that is acceptable and valid for the input containing the attribute. If the
value
of the element is greater than this, the element fails
constraint validation
. This value must be greater than or equal to the value of the
min
attribute. If the
max
attribute is present by is not specified or is invalid, no
max
value is applied. If the
max
attribute is valid and a non-empty value is greater than the maximum allowed by the
max
attribute, constraint validation will prevent form submission.
|
||
| 40 | HTML attribute: maxlength | Attribute, Attributes, Constraint validation, HTML |
maxlength
attribute defines the maximum number of characters (as UTF-16 code units) the user can enter into an
<input>
or
<textarea>
. This must be an integer value 0 or higher.
|
||
| 41 | HTML attribute: min | Attribute, Attributes, Constraint validation, HTML, min |
min
attribute defines the minimum value that is acceptable and valid for the input containing the attribute. If the
value
of the element is less than this, the element fails
constraint validation
. This value must be less than or equal to the value of the
max
attribute. If a value is specified for
min
that isn't a valid number, the input has no minimum value.
|
||
| 42 | HTML attribute: minlength | Attribute, HTML, Input, Reference, minlength, textarea |
minlength
attribute defines the minimum number of characters (as UTF-16 code units) the user can enter into an
<input>
or
<textarea>
. This must be an integer value 0 or higher. If no minlength is specified, or an invalid value is specified, the input has no minimum length. This value must be less than or equal to the value of
maxlength
, otherwise the value will never be valid, as it is impossible to meet both criteria.
|
||
| 43 | HTML attribute: multiple | Attribute, Attributes, Constraint validation, HTML |
The Boolean
multiple
attribute, if set, means the form control accepts one or more values. Valid for the
email
and
file
input types and the
<select>
, the manner by which the user opts for multiple values depends on the form control.
|
||
| 44 | HTML attribute: pattern | Attribute, Attributes, Constraint Validation API, HTML, Reference |
pattern
attribute specifies a
regular expression
the form control's value should match. If a non-
null
value doesn't conform to the constraints set by the
pattern
value, the
ValidityState
object's read-only
patternMismatch
property will be true.
|
||
| 45 | HTML attribute: readonly | Attribute, Attributes, Constraint validation, Forms, required |
The Boolean
readonly
attribute, when present, makes the element not mutable, meaning the user can not edit the control.
|
||
| 46 | HTML attribute: rel | Attribute, Attributes, Constraint validation, Link, form, rel |
rel
attribute defines the relationship between a linked resource and the current document. Valid on
<link>
,
<a>
,
<area>
,和
<form>
, the supported values depend on the element on which the attribute is found.
|
||
| 47 | HTML attribute: required | Attribute, Attributes, Constraint validation, Forms, required |
The Boolean
required
属性
|
||
| 48 | HTML attribute: size | Attribute, HTML, Input, Reference, Select |
size
attribute defines the width of the
<input>
and the height of the
<select>
element. For the
input
, if the
type
属性为
text
or
password
then it's the number of characters. This must be an integer value 0 or higher. If no
size
is specified, or an invalid value is specified, the input has no size declared, and the form control will be the default width based on the user agent. If CSS targets the element with properties impacting the width, CSS takes precedence.
|
||
| 49 | HTML attribute: step | Attribute, Attributes, constrain validation, step |
step
attribute is a number that specifies the granularity that the value must adhere to or the keyword
any
. It is valid for the numeric input types, including the
date
,
month
,
week
,
time
,
datetime-local
,
number
and
range
类型。
|
||
| 50 | The HTML autocomplete attribute | Addresses, Attribute, Email addresses, Forms, HTML, Input, Phone Numbers, Reference, Select, Text, Usernames, autocomplete, form, passwords, textarea |
autocomplete
lets web developers specify what if any permission the
用户代理
has to provide automated assistance in filling out form field values, as well as guidance to the browser as to the type of information expected in the field.
|
||
| 51 | 被禁用 | Attribute, Attributes, Constraint validation, Forms, required |
The Boolean
被禁用
attribute, when present, makes the element not mutable, focusable, or even submitted with the form. The user can neither edit nor focus on the control, nor its form control descendants.
|
||
| 52 | HTML documentation index | HTML, Index, MDN Meta |
| A comprehensive index list of all the available HTML documentation. | ||
| 53 | HTML 元素参考 | Basic, Element, HTML, Reference, Web, l10n:priority |
| This page lists all the HTML 元素 ,创建是使用 tags . | ||
| 54 | <a>: The Anchor element | Content, Element, HTML, HTML text-level semantics, HTML:Flow content, HTML:Interactive content, HTML:Palpable Content, HTML:Phrasing content, Inline element, Reference, Web |
HTML
<a>
element
(或
anchor
元素),采用
its
href
属性
, creates a hyperlink to web pages, files, email addresses, locations in the same page, or anything else a URL can address.
|
||
| 55 | <abbr>: The Abbreviation element | Acronym, Definitions, Element, HTML, HTML text-level semantics, HTML:Flow content, HTML:Palpable Content, HTML:Phrasing content, Reference, Web, abbr, abbreviation, semantics |
HTML 缩写元素
(
<abbr>
) represents an abbreviation or acronym; the optional
title
attribute can provide an expansion or description for the abbreviation.
|
||
| 56 | <acronym> | Element, HTML, HTML:Flow content, Obsolete, Reference, Web |
The HTML Acronym Element (
<acronym>
) allows authors to clearly indicate a sequence of characters that compose an acronym or abbreviation for a word.
|
||
| 57 | <address>: The Contact Address element | Address, Author, Contact, Contact Information, Element, Email, Email Address, HTML, HTML sections, HTML:Flow content, HTML:Palpable Content, Reference, Web |
HTML
<address>
element
indicates that the enclosed HTML provides contact information for a person or people, or for an organization.
|
||
| 58 | <applet>: The Embed Java Applet element | Element, HTML, Java, Obsolete, Reference, Web, applet |
过时
HTML 小程序元素
(
<applet>
) embeds a Java applet into the document; this element has been deprecated in favor of
<object>
.
|
||
| 59 | <area> | Content, Element, HTML, HTML:Flow content, HTML:Phrasing content, Multimedia, Reference, Web |
HTML
<area>
tag
在拥有预定义可点击区域的图像映射中定义区域。
图像映射
允许图像几何区域关联
超文本链接
.
|
||
| 60 | <article>: The Article Contents element | Element, HTML, HTML sections, Reference, Web |
HTML
<article>
element
represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable (e.g., in syndication).
|
||
| 61 | <aside>: The Aside element | Element, HTML, HTML sections, HTML5, HTML:Flow content, HTML:Palpable Content, HTML:Sectioning content, Reference, Web |
HTML
<aside>
element
represents a portion of a document whose content is only indirectly related to the document's main content.
|
||
| 62 | <audio>: The Embed Audio element | Audio, Element, HTML, HTML embedded content, HTML5, HTML:Embedded content, HTML:Flow content, HTML:Phrasing content, Media, Multimedia, Reference, Web, sound |
HTML
<audio>
element
is used to embed sound content in documents. It may contain one or more audio sources, represented using the
src
属性或
<source>
element: the browser will choose the most suitable one. It can also be the destination for streamed media, using a
MediaStream
.
|
||
| 63 | <b>: The Bring Attention To element | Attention, Element, HTML, HTML text-level semantics, HTML:Flow content, HTML:Palpable Content, HTML:Phrasing content, Reference, Web |
HTML 注意力转移元素 (
<b>
)
is used to draw the reader's attention to the element's contents, which are not otherwise granted special importance.
|
||
| 64 | <base>: The Document Base URL element | Element, HTML, HTML document metadata, HTML:Metadata content, Reference |
HTML
<base>
element
specifies the base URL to use for all
relative
URLs in a document.
|
||
| 65 | <basefont> | Element, Fonts, HTML, Layout, Obsolete, Reference, Style, Web, basefont |
过时
HTML Base Font element
(
<basefont>
) sets a default font face, size, and color for the other elements which are descended from its parent element.
|
||
| 66 | <bdi>: The Bidirectional Isolate element | BDI, BiDi, Directionality, Element, HTML, HTML text-level semantics, HTML:Flow content, HTML:Palpable Content, HTML:Phrasing content, Internationalization, Left-to-Right, Reference, Right-to-left, Text, Web, direction, i18n, ltr, rtl |
HTML
Bidirectional Isolate element
(
<bdi>
) tells the browser's bidirectional algorithm to treat the text it contains in isolation from its surrounding text.
|
||
| 67 | <bdo>: The Bidirectional Text Override element | BiDi, Bidirectional Text, Element, HTML, HTML text-level semantics, HTML:Flow content, HTML:Palpable Content, HTML:Phrasing content, Left to Right, Reference, Right to Left, Text, Text Direction, Text Rendering, Web, ltr, rtl |
HTML Bidirectional Text Override element
(
<bdo>
) overrides the current directionality of text, so that the text within is rendered in a different direction.
|
||
| 68 | <bgsound>: The Background Sound element (obsolete) | Audio, Background Sound, Element, HTML, Internet Explorer, Non-standard, Obsolete, Reference, Web |
The Internet Explorer only
HTML Background Sound element
(
<bgsound>
) sets up a sound file to play in the background while the page is used; use
<audio>
代替。
|
||
| 69 | <big>: The Bigger Text element | Element, HTML, Obsolete, Reference, Web |
过时
HTML Big Element
(
<big>
) renders the enclosed text at a font size one level larger than the surrounding text (
medium
becomes
large
,例如)。
|
||
| 70 | <blink>: The Blinking Text element (obsolete) | Blink, Element, HTML, Obsolete, Reference, Web |
HTML Blink Element
(
<blink>
) is a non-standard element which causes the enclosed text to flash slowly.
|
||
| 71 | <blockquote>: The Block Quotation element | Blockquote, Element, HTML, HTML grouping content, HTML:Flow content, HTML:Palpable Content, HTML:Sectioning root, Quotations, Reference, Web |
HTML
<blockquote>
元素
(或
HTML 块引用元素
) 指示封闭文本是扩展引号。通常,这通过缩进视觉呈现 (见
注意事项
了解如何改变它)。引用源 URL 的给定可以使用
cite
属性,而源的文本表示的给定可以使用
<cite>
元素。
|
||
| 72 | <body>: The Document Body element | Element, HTML, Reference, Sectioning Root Element, Sections, Web |
HTML
<body>
元素
represents the content of an HTML document. There can be only one
<body>
元素在文档中。
|
||
| 73 | <br>: The Line Break element | Element, HTML, HTML text-level semantics, Reference, Web |
HTML
<br>
element
produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division of lines is significant.
|
||
| 74 | <button>: The Button element | Element, Forms, HTML, HTML forms, Reference, Web |
HTML
<button>
element
represents a clickable button, used to submit
forms
or anywhere in a document for accessible, standard button functionality.
|
||
| 75 | <canvas>: The Graphics Canvas element | Canvas, Element, HTML, HTML scripting, HTML5, Reference, Web |
使用
HTML
<canvas>
element
采用
画布脚本 API
或
WebGL API
绘制图形和动画。
|
||
| 76 | <caption>: The Table Caption element | Element, HTML, HTML Tables, HTML tabular data, Reference, Table Captions, Table Titles, Tables, Web, caption |
HTML
<caption>
element
specifies the caption (or title) of a table.
|
||
| 77 | <center>: The Centered Text element (obsolete) | Element, HTML, Obsolete, Reference, Text, Text Alignment, Web, alignment, center |
过时
HTML Center Element
(
<center>
) 是
block-level element
that displays its block-level or inline contents centered horizontally within its containing element.
|
||
| 78 | <cite>: The Citation element | Attribution, Citation, Citing References, Citing Works, Element, HTML, HTML text-level semantics, Quotations, Reference, Web |
HTML 引文元素
(
<cite>
) is used to describe a reference to a cited creative work, and must include the title of that work.
|
||
| 79 | <code>: The Inline Code element | Code, Element, HTML, HTML text-level semantics, Inline Code, Reference, Web |
HTML
<code>
element
displays its contents styled in a fashion intended to indicate that the text is a short fragment of computer code.
|
||
| 80 | <col> | Element, HTML, HTML tabular data, Reference, Tables, Web |
HTML
<col>
element
defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a
<colgroup>
元素。
|
||
| 81 | <colgroup> | Element, HTML, HTML tabular data, Reference, Tables, Web |
HTML
<colgroup>
element
defines a group of columns within a table.
|
||
| 82 | <command>: The HTML Command element | Command, HTML, HTML commands, HTML5, HTML:Element, HTML:Element Reference, Obsolete |
HTML Command element
(
<command>
) represents a command which the user can invoke. Commands are often used as part of a context menu or toolbar.
|
||
| 83 | <content>: The Shadow DOM Content Placeholder element (obsolete) | Content, DOM, Deprecated, Element, HTML, HTML Web Components, Placeholder, Reference, Web, Web Components, shadow dom |
HTML
<content>
element
—an obsolete part of the
Web 组件
suite of technologies—was used inside of
Shadow DOM
as an
insertion point
, and wasn't meant to be used in ordinary HTML.
|
||
| 84 | <data> | Element, HTML, HTML text-level semantics, Reference, Web |
HTML
<data>
element
links a given piece of content with a machine-readable translation. If the content is time- or date-related, the
<time>
element must be used.
|
||
| 85 | <datalist>: The HTML Data List element | Element, HTML, HTML forms, HTML5, Reference, Web |
HTML
<datalist>
element
contains a set of
<option>
elements that represent the permissible or recommended options available to choose from within other controls.
|
||
| 86 | <dd>: The Description Details element | Definition, Description Details, Element, HTML, HTML grouping content, Reference, Web, dd, description list, details |
HTML
<dd>
element
提供描述、定义、或值为之前术语 (
<dt>
) 在描述列表 (
<dl>
).
|
||
| 87 | <del>: The Deleted Text element | Deleted Text, Element, HTML, HTML edits, Reference, Web, del |
HTML
<del>
element
表示已从文档删除的文本范围。
|
||
| 88 | <details>: The Details disclosure element | Disclosure Box, Disclosure Widget, Element, HTML, HTML interactive elements, Reference, Web, details |
HTML Details Element (
<details>
)
creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state.
|
||
| 89 | <dfn>: The Definition element | Definition, Definitions, Element, HTML, HTML text-level semantics, Reference, Semantic Markup, Web, dfn |
HTML Definition element
(
<dfn>
) is used to indicate the term being defined within the context of a definition phrase or sentence.
|
||
| 90 | <dialog>: The Dialog element | Dialog, Element, HTML, HTML interactive elements, Reference, Web, polyfill |
HTML
<dialog>
element
represents a dialog box or other interactive component, such as a dismissable alert, inspector, or subwindow.
|
||
| 91 | <dir>: The Directory element (obsolete) | Directory, Element, HTML, HTML Lists, Obsolete, Reference, Web, dir, lists |
过时
HTML Directory element
(
<dir>
) is used as a container for a directory of files and/or folders, potentially with styles and icons applied by the
用户代理
.
|
||
| 92 | <div>: The Content Division element | Content Division, Element, HTML, HTML grouping content, HTML:Flow content, Layout, Reference, Web, div |
HTML 内容划分元素
(
<div>
) 是用于流式内容的一般容器。它对内容 (或布局) 不起作用,直到样式使用
CSS
.
|
||
| 93 | <dl>: The Description List element | Element, HTML, HTML grouping content, HTML:Flow content, HTML:Palpable Content, Reference, Web |
HTML
<dl>
element represents a description list. The element encloses a list of groups of terms (specified using the
<dt>
element) and descriptions (provided by
<dd>
elements). Common uses for this element are to implement a glossary or to display metadata (a list of key-value pairs).
|
||
| 94 | <dt>: The Description Term element | Definition, Definition List, Definition Term, Element, HTML, HTML grouping content, Reference, Term, dt, lists |
HTML
<dt>
element
specifies a term in a description or definition list, and as such must be used inside a
<dl>
元素。
|
||
| 95 | <element>: The Custom Element element (Obsolete) | Element, HTML, Obsolete, Web Components, custom elements, shadow dom |
过时
HTML
<element>
element
was part of the
Web 组件
specification; it was intended to be used to define new custom DOM elements.
|
||
| 96 | <em>: The Emphasis element | Element, HTML, HTML text-level semantics, Reference, Web |
HTML
<em>
element
marks text that has stress emphasis. The
<em>
element can be nested, with each level of nesting indicating a greater degree of emphasis.
|
||
| 97 | <embed>: The Embed External Content element | Element, Embedding Content, External content, HTML, HTML embedded content, HTML5, Plugins, Reference, Web, embed |
HTML
<embed>
element
embeds external content at the specified point in the document. This content is provided by an external application or other source of interactive content such as a browser plug-in.
|
||
| 98 | <fieldset>: The Field Set element | Element, Forms, HTML, HTML forms, Reference, Web |
HTML
<fieldset>
element
is used to group several controls as well as labels (
<label>
) within a web form.
|
||
| 99 | <figcaption>: The Figure Caption element | Element, HTML, HTML grouping content, Reference |
HTML
<figcaption>
or Figure Caption element
represents a caption or legend describing the rest of the contents of its parent
<figure>
元素。
|
||
| 100 | <figure>: The Figure with Optional Caption element | Element, HTML, HTML grouping content, Information, Presentation, Reference, figure |
HTML
<figure>
(具有可选标题的图形) 元素
represents self-contained content, potentially with an optional caption, which is specified using the (
<figcaption>
) 元素。
|
||
| 101 | <font> | Element, HTML, Obsolete, Reference, Web |
HTML Font Element
(
<font>
) defines the font size, color and face for its content.
|
||
| 102 | <footer> | Element, HTML, HTML sections, Reference |
HTML
<footer>
element
represents a footer for its nearest
区间内容
or
区间根
element. A footer typically contains information about the author of the section, copyright data or links to related documents.
|
||
| 103 | <form> | Element, Form Element, Forms, HTML, HTML Form Element, HTML forms, Reference, Web |
HTML
<form>
element
represents a document section containing interactive controls for submitting information.
|
||
| 104 | <frame> | Deprecated, Element, HTML, Reference, Web |
<frame>
is an HTML element which defines a particular area in which another HTML document can be displayed. A frame should be used within a
<frameset>
.
|
||
| 105 | <frameset> | Deprecated, Element, HTML, Reference, Web |
HTML
<frameset>
element
is used to contain
<frame>
元素。
|
||
| 106 | <h1>–<h6>: The HTML Section Heading elements | Element, HTML, HTML sections, Reference, Web |
HTML
<h1>
–
<h6>
元素
represent six levels of section headings.
<h1>
is the highest section level and
<h6>
is the lowest.
|
||
| 107 | <head>: The Document Metadata (Header) element | Element, HTML, HTML document metadata, HTML:Metadata content, Reference, Web |
HTML
<head>
element
contains machine-readable information (
metadata
) about the document, like its
title
,
脚本
,和
样式表
.
|
||
| 108 | <header> | Element, HTML, HTML sections, Reference |
HTML
<header>
element
represents introductory content, typically a group of introductory or navigational aids. It may contain some heading elements but also a logo, a search form, an author name, and other elements.
|
||
| 109 | <hgroup> | Element, Experimental, HTML, HTML sections, HTML5, Reference, Web |
HTML
<hgroup>
element
represents a multi-level heading for a section of a document. It groups a set of
<h1>–<h6>
元素。
|
||
| 110 | <hr>: The Thematic Break (Horizontal Rule) element | Element, HTML, HTML grouping content, Reference |
HTML
<hr>
element
represents a thematic break between paragraph-level elements: for example, a change of scene in a story, or a shift of topic within a section.
|
||
| 111 | <html>: The HTML Document / Root element | Element, HTML, HTML Root Element, Reference, Web |
HTML
<html>
element
represents the root (top-level element) of an HTML document, so it is also referred to as the
root element
. All other elements must be descendants of this element.
|
||
| 112 | manifest | Cache, application cache |
manifest
attribute of
<html>
element specifies a URL of a application cache manifest that is downloaded in the early stages of page load.
|
||
| 113 | <i>: The Idiomatic Text element | Element, HTML, HTML text-level semantics, Reference, Web, em |
HTML Idiomatic Text element (
<i>
)
represents a range of text that is set off from the normal text for some reason, such as idiomatic text, technical terms, taxonomical designations, among others.
|
||
| 114 | <iframe>: The Inline Frame element | Content, Element, Embedded content, Embedding, Frames, HTML, HTML embedded content, Inline Frames, Reference, Web, embedded, iframe |
HTML 内联框架元素 (
<iframe>
)
表示嵌套
浏览上下文
,将另一 HTML 页面嵌入当前页面。
|
||
| 115 | <image>: The obsolete Image element | Element, HTML, HTML Element Reference, HTML Reference, HTML element, Non-standard, Obsolete, Reference |
过时
HTML Image element (
<image>
)
is an obsolete remnant of an ancient version of HTML lost in the mists of time; use the standard
<img>
element instead.
|
||
| 116 | <img>: The Image Embed element | Content, Element, Graphics, HTML, HTML Graphics, HTML Images, HTML Photos, HTML Pictures, HTML embedded content, Image, Image Element, Media, Multimedia, Photos, Pictures, Reference, Web |
HTML
<img>
element
将图像嵌入文档。
|
||
| 117 | <input>: The Input (Form Input) element | Data entry, Element, Forms, HTML, HTML forms, HTML input tag, Input, MakeBrowserAgnostic, Reference, Web |
HTML
<input>
element
is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and
用户代理
.
|
||
| 118 | <input type="button"> | Element, Forms, HTML, HTML forms, Input, Input Element, Input Type, Reference, button |
<input>
elements of type
button
are rendered as simple push buttons, which can be programmed to control custom functionality anywhere on a webpage as required when assigned an event handler function (typically for the
click
event).
|
||
| 119 | <input type="checkbox"> | Element, HTML, HTML forms, Input, Input Types, Reference, checkbox, form |
<input>
elements of type
checkbox
are rendered by default as boxes that are checked (ticked) when activated, like you might see in an official government paper form. The exact appearance depends upon the operating system configuration under which the browser is running. Generally this is a square but it may have rounded corners. A checkbox allows you to select single values for submission in a form (or not).
|
||
| 120 | <input type="color"> | Color Picker, Element, Form input, Forms, HTML, HTML forms, HTML input, Input, Reference, color |
<input>
elements of type
color
provide a user interface element that lets a user specify a color, either by using a visual color picker interface or by entering the color into a text field in
#rrggbb
hexadecimal format.
|
||
| 121 | <input type="date"> | Date, Date picker, Element, Form Inputs, HTML, HTML forms, Input, Input Element, Input Type, Reference |
<input>
elements of
type="date"
create input fields that let the user enter a date, either with a textbox that validates the input or a special date picker interface.
|
||
| 122 | <input type="datetime"> | Element, HTML, HTML forms, Input, Input Element, Input Type, Obsolete, Reference, datetime |
HTML
<input type="datetime">
was a control for entering a date and time (hour, minute, second, and fraction of a second) as well as a timezone.
This feature has been
removed from WHATWG HTML
, and is no longer supported in browsers.
|
||
| 123 | <input type="datetime-local"> | Date, Date and Time, Element, Form input, HTML, HTML forms, Input, Input Element, Input Type, Reference, Time, datetime-local |
<input>
elements of type
datetime-local
create input controls that let the user easily enter both a date and a time, including the year, month, and day as well as the time in hours and minutes.
|
||
| 124 | <input type="email"> | Email, Forms, HTML, HTML forms, Input Type, Reference |
<input>
elements of type
email
are used to let the user enter and edit an e-mail address, or, if the
multiple
attribute is specified, a list of e-mail addresses.
|
||
| 125 | <input type="file"> | Directory Picker, File, File Picker, Files, Form input, HTML, HTML forms, Input Type, Reference, Type |
<input>
elements with
type="file"
let the user choose one or more files from their device storage. Once chosen, the files can be uploaded to a server using
form submission
, or manipulated using JavaScript code and
the File API
.
|
||
| 126 | <input type="hidden"> | Element, Forms, HTML, HTML forms, Input, Input Types, Reference, hidden |
<input>
elements of type
hidden
let web developers include data that cannot be seen or modified by users when a form is submitted. For example, the ID of the content that is currently being ordered or edited, or a unique security token. Hidden inputs are completely invisible in the rendered page, and there is no way to make it visible in the page's content.
|
||
| 127 | <input type="image"> | Element, Form Image, Form Image Button, Forms, HTML, HTML Image Button, HTML forms, Image Button, Input, Input Type, Number, Reference |
<input>
elements of type
image
are used to create graphical submit buttons, i.e. submit buttons that take the form of an image rather than text.
|
||
| 128 | <input type="month"> | Date picker, Element, Form input, Forms, HTML, HTML forms, HTML input, Input, Input Element, Input Type, Number, Reference, month |
<input>
elements of type
month
create input fields that let the user enter a month and year allowing a month and year to be easily entered. The value is a string whose value is in the format "
YYYY-MM
", where
YYYY
is the four-digit year and
MM
is the month number.
|
||
| 129 | <input type="number"> | Element, Forms, HTML, HTML forms, Input, Input Element, Input Type, Number, Reference |
<input>
elements of type
编号
are used to let the user enter a number. They include built-in validation to reject non-numerical entries.
|
||
| 130 | <input type="password"> | Element, Forms, HTML, HTML Input Types, HTML Inputs, HTML Password Input, HTML forms, HTML input tag, Input Types, Reference, Web, password |
<input>
elements of type
password
provide a way for the user to securely enter a password.
|
||
| 131 | <input type="radio"> | Choosing Options, Element, Form Options, HTML, HTML Input Types, HTML forms, HTML input, Input, Input Types, Options, Radio Buttons, Radio Groups, Reference, form, radio, radio button |
<input>
elements of type
radio
are generally used in
radio groups
—collections of radio buttons describing a set of related options.
|
||
| 132 | <input type="range"> | Element, Forms, HTML, HTML forms, HTML input tag, Input, Range, Reference, Web, slider |
<input>
elements of type
range
let the user specify a numeric value which must be no less than a given value, and no more than another given value. The precise value, however, is not considered important. This is typically represented using a slider or dial control rather than a text entry box like the
number
input type.
|
||
| 133 | <input type="reset"> | Element, Form Button, Form input, Forms, HTML, HTML forms, Input, Input Types, Reference, Reset Button, reset |
<input>
elements of type
reset
are rendered as buttons, with a default
click
event handler that resets all of the inputs in the form to their initial values.
|
||
| 134 | <input type="search"> | Form input, Forms, HTML, HTML forms, Input Type, Reference, Search |
<input>
elements of type
search
are text fields designed for the user to enter search queries into. These are functionally identical to
text
inputs, but may be styled differently by the
用户代理
.
|
||
| 135 | <input type="submit"> | Element, Form Button, Form input, HTML, HTML forms, Input, Input Types, Reference, Submit Form, button, form, submit, submit button |
<input>
elements of type
submit
are rendered as buttons. When the
click
event occurs (typically because the user clicked the button), the
用户代理
attempts to submit the form to the server.
|
||
| 136 | <input type="tel"> | Element, Form Inputs, Forms, HTML, HTML forms, HTML input, Input, Input Element, Input Type, Phone Numbers, Reference, Telephone Numbers, tel |
<input>
elements of type
tel
are used to let the user enter and edit a telephone number. Unlike
<input type="email">
and
<input type="url">
, the input value is not automatically validated to a particular format before the form can be submitted, because formats for telephone numbers vary so much around the world.
|
||
| 137 | <input type="text"> | Form input, Forms, HTML, HTML forms, Input, Input Type, Reference, Text, text entry, text input |
<input>
elements of type
text
create basic single-line text fields.
|
||
| 138 | <input type="time"> | Element, Forms, HTML, HTML Input Types, HTML forms, HTML input, Input, Input Element, Input Type, Reference, Time |
<input>
elements of type
time
create input fields designed to let the user easily enter a time (hours and minutes, and optionally seconds).
|
||
| 139 | <input type="url"> | Element, Form Control, Form Inputs, Forms, HTML, HTML Input Types, HTML forms, Input, Input Type, Reference, Text, URL, control |
<input>
elements of type
url
are used to let the user enter and edit a URL.
|
||
| 140 | <input type="week"> | Element, Forms, HTML, HTML Input Types, HTML forms, HTML input, Input, Input Element, Input Type, Input Types, Reference, Week, Weeks |
<input>
elements of type
week
create input fields allowing easy entry of a year plus the
ISO 8601 week number
during that year (i.e., week 1 to
52 or 53
).
|
||
| 141 | <ins> | Element, HTML, HTML edits, Inserted Text, Insertion, Reference, Web, ins |
HTML
<ins>
element
表示已添加到文档的文本范围。
|
||
| 142 | <isindex> | Deprecated, Element, HTML, Reference, Web |
<isindex>
was an obsolete HTML element that put a text field in a page for querying the document.
|
||
| 143 | <kbd>: The Keyboard Input element | Displaying Input, Displaying Keys, Displaying Keystrokes, Displaying User Input, Element, HTML, HTML text-level semantics, Keyboard Input, Keystroke, Reference, Web, keyboard, user input |
HTML Keyboard Input element
(
<kbd>
) represents a span of inline text denoting textual user input from a keyboard, voice input, or any other text entry device.
|
||
| 144 | <keygen> | Deprecated, Element, HTML, HTML5, Obsolete, Reference, Web |
HTML
<keygen>
element exists to facilitate generation of key material, and submission of the public key as part of an
HTML form
. This mechanism is designed for use with Web-based certificate management systems. It is expected that the
<keygen>
element will be used in an HTML form along with other information needed to construct a certificate request, and that the result of the process will be a signed certificate.
|
||
| 145 | <label> | Element, Forms, HTML, HTML forms, Reference, Web |
HTML
<label>
element
represents a caption for an item in a user interface.
|
||
| 146 | <legend> | Element, Forms, HTML, HTML forms, Reference, Web |
HTML
<legend>
element
represents a caption for the content of its parent
<fieldset>
.
|
||
| 147 | <li> | Element, HTML, HTML grouping content, Reference |
HTML
<li>
element
用于表示列表中的项。
|
||
| 148 | <link>: The External Resource Link element | Element, HTML, HTML document metadata, Link, Reference, Web, Web Performance, metadata |
HTML External Resource Link element (
<link>
)
specifies relationships between the current document and an external resource. This element is most commonly used to link to
stylesheets
, but is also used to establish site icons (both "favicon" style icons and icons for the home screen and apps on mobile devices) among other things.
|
||
| 149 | <listing> | Element, HTML, Obsolete, Reference, Web |
HTML Listing Element
(
<listing>
) renders text between the start and end tags without interpreting the HTML in between and using a monospaced font. The HTML 2 standard recommended that lines shouldn't be broken when not greater than 132 characters.
|
||
| 150 | <main> | Element, HTML, HTML sections, Reference, main |
HTML
<main>
element
represents the dominant content of the
<body>
of a document. The main content area consists of content that is directly related to or expands upon the central topic of a document, or the central functionality of an application.
|
||
| 151 | <map> | Element, HTML, HTML embedded content, Multimedia, Reference, Web |
HTML
<map>
element
用于
<area>
元素以定义图像映射 (可点击的链接区域)。
|
||
| 152 | <mark>: The Mark Text element | Element, HTML, HTML text-level semantics, HTML5, Highlighting, Highlighting Text, Marking Text, Reference, Web, mark |
HTML 标记文本元素
(
<mark>
) represents text which is
marked
or
highlighted
for reference or notation purposes, due to the marked passage's relevance or importance in the enclosing context.
|
||
| 153 | <marquee>: The Marquee element (Obsolete) | Element, HTML, Obsolete, Reference, Web, marquee |
HTML
<marquee>
element is used to insert a scrolling area of text. You can control what happens when the text reaches the edges of its content area using its attributes.
|
||
| 154 | <menu> | Element, Experimental, HTML, HTML interactive elements, Navigation, Reference, Site Navigation, UI, UX, User Interface, User experience, Web, menu, menus |
HTML
<menu>
element
represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as
context menus
, such as those that might appear underneath a button after it has been clicked.
|
||
| 155 | <menuitem> | Deprecated, Element, HTML, HTML5, Navigation, Navigation Menus, Reference, UI, UX, User Interface, User experience, Web, menuitem |
HTML
<menuitem>
element
represents a command that a user is able to invoke through a popup menu. This includes context menus, as well as menus that might be attached to a menu button.
|
||
| 156 | <meta>: The Document-level Metadata element | Document, Element, HTML, HTML charset, HTML document metadata, Reference, Web, charset, http-equiv, metadata |
HTML
<meta>
element
表示
metadata
that cannot be represented by other HTML meta-related elements, like
<base>
,
<link>
,
<script>
,
<style>
or
<title>
.
|
||
| 157 | Standard metadata names | Attribute, HTML, HTML document metadata, Reference, metadata |
<meta>
element can be used to provide document metadata in terms of name-value pairs, with the
name
attribute giving the metadata name, and the
content
attribute giving the value.
|
||
| 158 | theme-color | Attribute, HTML, HTML document metadata, Reference, metadata |
theme-color
value for the
name
属性在
<meta>
element indicates a suggested color that user agents should use to customize the display of the page or of the surrounding user interface. If specified, the
content
attribute must contain a valid CSS
<color>
.
|
||
| 159 | <meter>: The HTML Meter element | Element, HTML, HTML forms, HTML5, Reference, Web |
HTML
<meter>
element
represents either a scalar value within a known range or a fractional value.
|
||
| 160 | <multicol>: The HTML Multi-Column Layout element (Obsolete) | Element, HTML, Non-standard, Obsolete, Reference, multicol |
HTML Multi-Column Layout element
(
<multicol>
) was an experimental element designed to allow multi-column layouts and must not be used.
|
||
| 161 | <nav>: The Navigation Section element | Element, HTML, HTML sections, Links, Navigation, Reference, Sections, Web, nav |
HTML
<nav>
element
represents a section of a page whose purpose is to provide navigation links, either within the current document or to other documents. Common examples of navigation sections are menus, tables of contents, and indexes.
|
||
| 162 | <nextid>: The NeXT ID element (Obsolete) | Element, HTML, Obsolete, Reference, Web |
<nextid>
is an obsolete HTML element that served to enable the NeXT web designing tool to generate automatic NAME labels for its anchors.
|
||
| 163 | <nobr>: The Non-Breaking Text element (obsolete) | Element, HTML, Non-standard, Obsolete, Reference, Web, nobr |
The non-standard, obsolete HTML
<nobr>
element prevents the text it contains from automatically wrapping across multiple lines, potentially resulting in the user having to scroll horizontally to see the entire width of the text.
|
||
| 164 | <noembed>: The Embed Fallback element (Obsolete) | Element, Embedded content, Embedding, HTML, Non-standard, Obsolete, Reference, noembed |
<noembed>
element is an obsolete, non-standard way to provide alternative, or "fallback", content for browsers that do not support the
<embed>
element or do not support the type of
embedded content
an author wishes to use.
|
||
| 165 | <noframes>: The Frame Fallback element | Element, Frames, HTML, HTML frames, Obsolete, Reference, Web, noframes |
The obsolete HTML
No Frames
or
frame fallback
element,
<noframes>
, provides content to be presented in browsers that don't support (or have disabled support for) the
<frame>
元素。
|
||
| 166 | <noscript> | Element, HTML, HTML scripting, Reference, Web |
HTML
<noscript>
element
defines a section of HTML to be inserted if a script type on the page is unsupported or if scripting is currently turned off in the browser.
|
||
| 167 | <object> | Element, HTML, HTML embedded content, Reference, Web |
HTML
<object>
element
represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin.
|
||
| 168 | <ol>: The Ordered List element | Element, HTML, HTML grouping content, HTML:Flow content, Reference |
HTML
<ol>
element
represents an ordered list of items — typically rendered as a numbered list.
|
||
| 169 | <optgroup> | Element, Forms, HTML, HTML forms, Reference, Web |
HTML
<optgroup>
element
creates a grouping of options within a
<select>
元素。
|
||
| 170 | <option>: The HTML Option element | Element, Forms, HTML, HTML forms, Reference, Select |
HTML
<option>
element
is used to define an item contained in a
<select>
,
<optgroup>
,或
<datalist>
element. As such,
<option>
can represent menu items in popups and other lists of items in an HTML document.
|
||
| 171 | <output>: The Output element | Element, HTML, HTML forms, HTML5, HTML:Flow content, Reference, Web |
HTML Output element
(
<output>
) is a container element into which a site or app can inject the results of a calculation or the outcome of a user action.
|
||
| 172 | <p>: The Paragraph element | Element, HTML, HTML grouping content, Reference, Web |
HTML
<p>
element
表示段落。
|
||
| 173 | <param>: The Object Parameter element | Element, HTML, HTML embedded content, Reference, Web |
HTML
<param>
element
定义参数为
<object>
元素。
|
||
| 174 | <picture>: The Picture element | Element, Graphics, HTML, HTML embedded content, Images, Reference, Web, WebP, picture |
HTML
<picture>
element
包含零个或多个
<source>
元素和一个
<img>
element to offer alternative versions of an image for different display/device scenarios.
|
||
| 175 | <plaintext>: The Plain Text element (Deprecated) | Element, HTML, Obsolete, Plain text, Reference, Web, plaintext |
HTML Plaintext Element
(
<plaintext>
) renders everything following the start tag as raw text, ignoring any following HTML.
|
||
| 176 | <pre>: The Preformatted Text element | Element, HTML, HTML grouping content, HTML:Flow content, Reference, Web |
HTML
<pre>
element
represents preformatted text which is to be presented exactly as written in the HTML file.
|
||
| 177 | <progress>: The Progress Indicator element | Element, HTML, HTML forms, HTML5, Reference, Web |
HTML
<progress>
element
displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
|
||
| 178 | <q>: The Inline Quotation element | Citation, Cite, Element, HTML, HTML text-level semantics, Q, Quotation, Quotation Marks, Reference, Web, quote |
HTML
<q>
element
indicates that the enclosed text is a short inline quotation. Most modern browsers implement this by surrounding the text in quotation marks.
|
||
| 179 | <rb>: The Ruby Base element | Element, HTML, HTML text-level semantics, Reference, Ruby, Text, Web |
HTML Ruby 基 (
<rb>
) element
is used to delimit the base text component of a
<ruby>
annotation, i.e. the text that is being annotated.
|
||
| 180 | <rp>: The Ruby Fallback Parenthesis element | Element, HTML, HTML text-level semantics, Reference, Ruby, Text, Web |
HTML Ruby Fallback Parenthesis (
<rp>
) element
is used to provide fall-back parentheses for browsers that do not support display of ruby annotations using the
<ruby>
元素。
|
||
| 181 | <rt>: The Ruby Text element | Element, HTML, HTML text-level semantics, Reference, Ruby, Text, Web |
HTML Ruby Text (
<rt>
) element
specifies the ruby text component of a ruby annotation, which is used to provide pronunciation, translation, or transliteration information for East Asian typography. The
<rt>
element must always be contained within a
<ruby>
元素。
|
||
| 182 | <rtc>: The Ruby Text Container element | Element, HTML, HTML text-level semantics, NeedsContent, Reference, Ruby Text, Text, Web, rtc |
HTML Ruby 文本容器 (
<rtc>
) element
embraces semantic annotations of characters presented in a ruby of
<rb>
elements used inside of
<ruby>
元素。
<rb>
elements can have both pronunciation (
<rt>
) and semantic (
<rtc>
) annotations.
|
||
| 183 | <ruby> | Element, HTML, HTML text-level semantics, Reference, Web |
HTML
<ruby>
element
represents small annotations that are rendered above, below, or next to base text, usually used for showing the pronunciation of East Asian characters. It can also be used for annotating other kinds of text, but this usage is less common.
|
||
| 184 | <s> | Element, HTML, HTML text-level semantics, Reference, Web, text-decoration |
HTML
<s>
element
renders text with a strikethrough, or a line through it. Use the
<s>
element to represent things that are no longer relevant or no longer accurate. However,
<s>
is not appropriate when indicating document edits; for that, use the
<del>
and
<ins>
elements, as appropriate.
|
||
| 185 | <samp>: The Sample Output element | Element, HTML, HTML text-level semantics, Inline Sample, Reference, Sample Output, Sample Text, Web |
HTML Sample Element
(
<samp>
) is used to enclose inline text which represents sample (or quoted) output from a computer program.
|
||
| 186 | <script>: The Script element | Element, HTML, HTML scripting, HTML:Flow content, HTML:Metadata content, HTML:Phrasing content, HTML:Script-supporting element, Reference, Script, Web, tag |
HTML
<script>
element
is used to embed executable code or data; this is typically used to embed or refer to JavaScript code.
|
||
| 187 | <section>: The Generic Section element | Element, HTML, HTML sections, Reference, Section, Web |
HTML
<section>
element
represents a standalone section — which doesn't have a more specific semantic element to represent it — contained within an HTML document.
|
||
| 188 | <select>: The HTML Select element | Element, Forms, HTML, HTML forms, Reference, Web |
HTML
<select>
element
represents a control that provides a menu of options
|
||
| 189 | <shadow>: The obsolete Shadow Root element | Deprecated, Element, HTML, HTML Web Components, Reference, Shadow Root, Web Components, shadow, shadow dom |
HTML
<shadow>
element
—an obsolete part of the
Web 组件
technology suite—was intended to be used as a shadow DOM
insertion point
.
|
||
| 190 | <slot> | Element, HTML, HTML Web Components, Reference, Web Components, shadow dom, slot |
HTML
<slot>
element
—part of the
Web 组件
technology suite—is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together.
|
||
| 191 | <small>: the side comment element | Element, HTML, HTML text-level semantics, Reference, Web, font-size |
HTML
<small>
element
represents side-comments and small print, like copyright and legal text, independent of its styled presentation. By default, it renders text within it one font-size smaller, such as from
small
to
x-small
.
|
||
| 192 | <source>: The Media or Image Source element | Element, HTML, HTML embedded content, Media, Reference, Web, Web Performance |
HTML
<source>
element
指定多媒体资源为
<picture>
,
<audio>
元素,或
<video>
元素。
|
||
| 193 | <spacer> | Element, HTML, Obsolete, Reference, Web |
<spacer>
is an obsolete HTML element which allowed insertion of empty spaces on pages. It was devised by Netscape to accomplish the same effect as a single-pixel layout image, which was something web designers used to use to add white spaces to web pages without actually using an image. However,
<spacer>
no longer supported by any major browser and the same effects can now be achieved using simple CSS.
|
||
| 194 | <span> | Element, HTML, HTML text-level semantics, HTML:Flow content, Reference, Web |
HTML
<span>
element
is a generic inline container for phrasing content, which does not inherently represent anything. It can be used to group elements for styling purposes (using the
class
or
id
attributes), or because they share attribute values, such as
lang
.
|
||
| 195 | <strike> | Element, HTML, Obsolete, Reference, Web |
HTML
<strike>
element
(或
HTML Strikethrough Element
) places a strikethrough (horizontal line) over text.
|
||
| 196 | <strong>: The Strong Importance element | Element, HTML, HTML text-level semantics, HTML:Flow content, HTML:Palpable Content, HTML:Phrasing content, Reference, Strong Importance, Urgency, Web, strong |
HTML
Strong Importance Element
(
<strong>
) indicates that its contents have strong importance, seriousness, or urgency. Browsers typically render the contents in bold type.
|
||
| 197 | <style>: The Style Information element | CSS, Element, HTML, HTML document metadata, Reference, Style, Web |
HTML
<style>
element
contains style information for a document, or part of a document.
|
||
| 198 | <sub>: The Subscript element | Baseline, Element, Footnotes, HTML, HTML text-level semantics, HTML:Flow content, HTML:Palpable Content, HTML:Phrasing content, Reference, Subscript, Web, sub |
HTML
Subscript element
(
<sub>
) specifies inline text which should be displayed as subscript for solely typographical reasons.
|
||
| 199 | <summary>: The Disclosure Summary element | Disclosure Box, Disclosure Control, Disclosure Summary, Element, HTML, HTML interactive elements, Reference, Summary, Web |
HTML Disclosure Summary element
(
<summary>
) element specifies a summary, caption, or legend for a
<details>
element's disclosure box.
|
||
| 200 | <sup>: The Superscript element | Element, HTML, HTML text-level semantics, HTML:Flow content, HTML:Palpable Content, HTML:Phrasing content, Reference, Web |
HTML Superscript element
(
<sup>
) specifies inline text which is to be displayed as superscript for solely typographical reasons.
|
||
| 201 | <table>: The Table element | Element, HTML, HTML tabular data, NeedsLiveSample, Reference, Sorting, Tables, Web |
HTML
<table>
element
represents tabular data — that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data.
|
||
| 202 | <tbody>: The Table Body element | Element, HTML, HTML tabular data, Reference, Table Body, Table Contents, Tables, Web, tbody |
HTML Table Body element
(
<tbody>
) encapsulates a set of table rows (
<tr>
elements), indicating that they comprise the body of the table (
<table>
).
|
||
| 203 | <td>: The Table Data Cell element | Cells, Data Cell, Element, HTML, HTML tabular data, Reference, Table Cell, Table Data, Tables, Web, cell, data, td |
HTML
<td>
element
defines a cell of a table that contains data. It participates in the
表格模型
.
|
||
| 204 | <template>: The Content Template element | Element, HTML, HTML Web Components, HTML:Flow content, HTML:Metadata content, HTML:Phrasing content, HTML:Script-supporting element, Reference, Template, Web, Web Components |
HTML 内容模板 (
<template>
) element
is a mechanism for holding
HTML
that is not to be rendered immediately when a page is loaded but may be instantiated subsequently during runtime using JavaScript.
|
||
| 205 | <textarea> | Element, Forms, HTML, HTML forms, Reference, Web, textarea |
HTML
<textarea>
element
represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example a comment on a review or feedback form.
|
||
| 206 | <tfoot>: The Table Foot element | Element, HTML, HTML tabular data, Reference, Tables, Web |
HTML
<tfoot>
element
defines a set of rows summarizing the columns of the table.
|
||
| 207 | <th> | Element, HTML, HTML tabular data, Heading Cell, Reference, Table Cell, Table Head, Table Header, Table Heading, Table Heading Cell, Tables, Web, cell |
HTML
<th>
element
defines a cell as header of a group of table cells. The exact nature of this group is defined by the
scope
and
headers
属性。
|
||
| 208 | <thead>: The Table Head element | Element, HTML, HTML tabular data, Reference, Tables, Web |
HTML
<thead>
element
defines a set of rows defining the head of the columns of the table.
|
||
| 209 | <time> | Element, HTML, HTML text-level semantics, HTML5, HTML:Flow content, HTML:Palpable Content, HTML:Phrasing content, Reference, Web |
HTML
<time>
element
represents a specific period in time.
|
||
| 210 | <title>: The Document Title element | Element, HTML, HTML document metadata, HTML:Metadata content, Page Name, Page Title, Reference, Tab Name, Tab Title, Title, Web, Window Name, Window Title |
HTML 标题元素
(
<title>
) defines the document's title that is shown in a
浏览器
的标题栏 (或页面选项卡)。
|
||
| 211 | <tr>: The Table Row element | Element, HTML, HTML tabular data, Reference, Tables, Web, tag, tr, tr tag |
HTML
<tr>
element
defines a row of cells in a table. The row's cells can then be established using a mix of
<td>
(data cell) and
<th>
(header cell) elements.
|
||
| 212 | <track>: The Embed Text Track element | Accessibility, Cues, Element, HTML, HTML embedded content, HTML5, Multimedia, Reference, TextTrack, Web, a11y, track |
HTML
<track>
element
is used as a child of the media elements,
<audio>
and
<video>
. It lets you specify timed text tracks (or time-based data), for example to automatically handle subtitles.
|
||
| 213 | <tt>: The Teletype Text element (obsolete) | Element, HTML, Monospace, Monotype, Non-proportional Type, Obsolete, Reference, Teletype, Teletype Text, Web, font-family, tt |
过时
HTML Teletype Text element
(
<tt>
) creates inline text which is presented using the
user agent's
default monospace font face.
|
||
| 214 | <u>: The Unarticulated Annotation (Underline) element | Annotation, Element, HTML, HTML text-level semantics, HTML:Flow content, HTML:Palpable Content, HTML:Phrasing content, Reference, Unarticulated Annotation, Underline, Web |
HTML
Unarticulated Annotation element
(
<u>
) represents a span of inline text which should be rendered in a way that indicates that it has a non-textual annotation.
|
||
| 215 | <ul>: The Unordered List element | Element, HTML, HTML grouping content, Reference |
HTML
<ul>
element
represents an unordered list of items, typically rendered as a bulleted list.
|
||
| 216 | <var>: The Variable element | Element, HTML, HTML text-level semantics, HTML:Flow content, HTML:Palpable Content, HTML:Phrasing content, Reference, Web, var, variable |
HTML
Variable element
(
<var>
) represents the name of a variable in a mathematical expression or a programming context.
|
||
| 217 | <video>: The Video Embed element | Element, HTML, HTML Video, HTML Video Player, HTML embedded content, HTML5, Media, Movie Playback, Movies, Multimedia, Playing Movies, Playing Video, Reference, Showing Video, Video, Web |
HTML Video element
(
<video>
) embeds a media player which supports video playback into the document. You can use
<video>
for audio content as well, but the
<audio>
element may provide a more appropriate user experience.
|
||
| 218 | <wbr> | Element, HTML, HTML text-level semantics, Reference, Web |
HTML
<wbr>
element
represents a word break opportunity—a position within text where the browser may optionally break a line, though its line-breaking rules would not otherwise create a break at that location.
|
||
| 219 | <xmp> | Element, HTML, Obsolete, Reference, Web |
HTML Example Element
(
<xmp>
) renders text between the start and end tags without interpreting the HTML in between and using a monospaced font. The HTML2 specification recommended that it should be rendered wide enough to allow 80 characters per line.
|
||
| 220 | HTML 参考 | HTML, Landing, Reference, Web |
| This HTML 参考描述所有 元素 and 属性 为 HTML,包括 全局属性 that apply to all elements. | ||
| 221 | 内联元素 | Beginner, Elements, HTML, HTML Elements, HTML:Element Reference, Layout, Reference |
| Inline elements are those which only occupy the space bounded by the tags defining the element, instead of breaking the flow of the content. | ||
| 222 | Link 类型 | Attribute, HTML, Link, Link types, Reference |
In HTML, link types indicate the relationship between two documents, in which one links to the other using an
<a>
,
<area>
,
<form>
,或
<link>
元素。
|
||
| 223 | Link types: dns-prefetch | Attribute, HTML, Link, Link types, Reference |
dns-prefetch
keyword for the
rel
属性在
<link>
element is a hint to browsers that the user is likely to need resources from the target resource's origin, and therefore the browser can likely improve the user experience by preemptively performing DNS resolution for that origin.
|
||
| 224 | Link types: manifest | App, Attribute, HTML, Link, Link types, Manifest, Reference |
manifest
keyword for the
rel
属性在
<link>
element indicates that the target resource is a
Web app manifest
.
|
||
| 225 | Link types: modulepreload | Attribute, HTML, Link, Link types, Reference |
modulepreload
keyword for the
rel
属性在
<link>
element provides a declarative way to preemptively fetch a
module script
and its dependencies, and store them in the document's module map for later evaluation.
|
||
| 226 | Link types: noopener | Attribute, HTML, Link types, Reference |
noopener
keyword for the
rel
属性在
<a>
,
<area>
,和
<form>
elements instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it — by not setting the
Window.opener
property on the opened window (it returns
null
).
|
||
| 227 | Link types: noreferrer | Attribute, HTML, Link types, Reference |
noreferrer
keyword for the
rel
属性在
<a>
,
<area>
,和
<form>
elements instructs the browser, when navigating to the target resource, to omit the
Referer
header and otherwise leak no referrer information — and additionally to behave as if the
noopener
keyword were also specified.
|
||
| 228 | Link types: preconnect | Attribute, HTML, Link, Link types, Reference |
preconnect
keyword for the
rel
属性在
<link>
element is a hint to browsers that the user is likely to need resources from the target resource's origin, and therefore the browser can likely improve the user experience by preemptively initiating a connection to that origin.
|
||
| 229 | Link types: prefetch | Attribute, HTML, Link, Link types, Reference |
prefetch
keyword for the
rel
属性在
<link>
element is a hint to browsers that the user is likely to need the target resource for future navigations, and therefore the browser can likely improve the user experience by preemptively fetching and caching the resource.
|
||
| 230 | Link types: preload | Attribute, HTML, Link, Link types, Reference |
preload
keyword for the
rel
属性在
<link>
element indicates the user is highly likely to require the target resource for the current navigation, and therefore the browser must preemptively fetch and cache the resource.
|
||
| 231 | Link types: prerender | Attribute, HTML, Link, Link types, Reference |
prerender
keyword for the
rel
属性在
<link>
element is a hint to browsers that the user might need the target resource for the next navigation, and therefore the browser can likely improve the user experience by preemptively fetching and processing the resource — for example, by fetching its subresources or performing some rendering in the background offscreen.
|
||
| 232 | Microdata | Composing, Example, HTML, Microdata, Reference, SEO, Search |
| Microdata is part of the WHATWG HTML Standard and is used to nest metadata within existing content on web pages. Search engines and web crawlers can extract and process microdata from a web page and use it to provide a richer browsing experience for users. Search engines benefit greatly from direct access to this structured data because it allows search engines to understand the information on web pages and provide more relevant results to users. Microdata uses a supporting vocabulary to describe an item and name-value pairs to assign values to its properties. Microdata is an attempt to provide a simpler way of annotating HTML elements with machine-readable tags than the similar approaches of using RDFa and classic microformats. | ||
| 233 | Microformats | Composing, HTML, Microformats, NeedsContent, NeedsMarkupWork, Reference, SEO, Search |
| Microformats (sometimes abbreviated μF ) are standards used to embed semantics & structured data in HTML, and provide an API to be used by search engines, aggregators, and other tools. These minimal patterns of HTML are used for marking up entities that range from fundamental to domain-specific information, such as people, organizations, events, and locations. Microformats use supporting vocabularies to describe objects and name-value pairs to assign values to their properties. The properties are carried in class attributes that can be added to any HTML element, while the data values re-use HTML element content and semantic attributes. Microformats2 is an update to microformats that provides a simpler way of annotating HTML structured syntax & vocabularies than previous approaches of using RDFa and microdata which require learning new attributes. | ||
| 234 | 采用 rel="preload" 预加载内容 | Guide, HTML, JavaScript, Link, Media, Performance, Web Performance, as, preload, rel |
preload
value of the
<link>
元素的
rel
attribute lets you declare fetch requests in the HTML's
<head>
, specifying resources that your page will need very soon, which you want to start loading early in the page lifecycle, before browsers' main rendering machinery kicks in.
|
||
| 235 | Quirks Mode and Standards Mode | Gecko, Guide, HTML, NeedsUpdate, Web Development, Web Standards, XHTML |
| In the old days of the web, pages were typically written in two versions: One for Netscape Navigator, and one for Microsoft Internet Explorer. When the web standards were made at W3C, browsers could not just start using them, as doing so would break most existing sites on the web. Browsers therefore introduced two modes to treat new standards compliant sites differently from old legacy sites. | ||
| 236 | Using the application cache | Advanced, App, Cache, Guide, HTML, appcache, application cache, web cache |
| HTML5 提供 application caching mechanism that lets web applications run offline. This Application Cache ( AppCache ) interface lists resources that browsers should cache to be available offline. Applications that are cached load and work correctly offline, even if users press the Refresh button. | ||