Skip to content

Instantly share code, notes, and snippets.

@vardumper
Created May 5, 2024 16:37
Show Gist options
  • Save vardumper/c2262d139141a318e706435b7c57b52f to your computer and use it in GitHub Desktop.
Save vardumper/c2262d139141a318e706435b7c57b52f to your computer and use it in GitHub Desktop.
HTML5 Specification YAML file
a:
name: Anchor
description: 'The a element represents a hyperlink, linking to another resource.'
level: inline
unique: false
attributes:
download:
description: 'Indicates that the linked content should be downloaded rather than displayed.'
defaultValue: filename.pdf
type: string
elements:
- a
- area
href:
description: 'Specifies the URL of the linked resource. Special protocols such as mailto: or tel: can be used.'
type: uri
required: true
elements:
- a
- area
- base
- link
hreflang:
description: 'Specifies the language of the linked resource.'
type: language_iso
defaultValue: en
elements:
- a
- area
- link
rel:
description: 'Specifies the relationship between the current document and the linked document.'
type: enum
choices:
- alternate
- author
- bookmark
- canonical
- help
- icon
- license
- next
- nofollow
- noreferrer
- prefetch
- prev
- search
- stylesheet
- tag
elements:
- a
- area
- link
target:
description: 'Specifies where to open the linked document.'
type: enum
defaultValue: _self
choices:
- _blank
- _parent
- _self
- _top
- framename
elements:
- a
- area
- base
- form
title:
description: 'Specifies additional information about the element, typically displayed as a tooltip.'
type: string
elements:
- a
- abbr
- area
- audio
- button
- details
- iframe
- img
- input
- map
- object
- progress
- span
- strong
- sub
- sup
- svg
- time
- video
type:
description: 'Specifies the media type of the linked resource.'
type: enum
elements:
- a
- area
- button
- input
- link
- object
- script
- source
- style
text: string
abbr:
name: Abbreviation
description: 'The abbr element represents an abbreviation or acronym, optionally with its expansion. The title attribute can be used to provide an expansion of the abbreviation. The attribute, if specified, must contain an expansion of the abbreviation, and nothing else.'
level: inline
defaultValue: HTML
unique: false
text: string
attributes:
title:
description: 'Specifies additional information about the element, typically displayed as a tooltip.'
type: string
elements:
- a
- abbr
- area
- audio
- button
- details
- iframe
- img
- input
- map
- object
- progress
- span
- strong
- sub
- sup
- svg
- time
- video
address:
name: Address
description: 'The address element represents the contact information for its nearest article or body ancestor. If that is the body element, then the contact information applies to the document as a whole.'
level: inline
unique: false
parent: article
unique_per_parent: true
text: string
area:
name: Area
description: 'The area element represents either a hyperlink with some text and a corresponding area on an image map, or a dead area on an image map.'
level: void
unique: false
attributes:
alt:
description: 'Specifies alternative text to be displayed when the image cannot be rendered.'
type: string
required: true
elements:
- area
- img
coords:
description: 'Specifies the coordinates of the shape in a rectangular area or a polygonal area on an image map.'
type: string
elements:
- area
download:
description: 'Indicates that the linked content should be downloaded rather than displayed.'
defaultValue: filename.pdf
type: string
elements:
- a
- area
href:
description: 'Specifies the URL of the linked resource. Special protocols such as mailto: or tel: can be used.'
type: uri
required: true
elements:
- a
- area
- base
- link
hreflang:
description: 'Specifies the language of the linked resource.'
type: language_iso
defaultValue: en
elements:
- a
- area
- link
rel:
description: 'Specifies the relationship between the current document and the linked document.'
type: enum
choices:
- alternate
- author
- bookmark
- canonical
- help
- icon
- license
- next
- nofollow
- noreferrer
- prefetch
- prev
- search
- stylesheet
- tag
elements:
- a
- area
- link
shape:
type: enum
choices:
- circle
- default
- poly
- rect
target:
description: 'Specifies where to open the linked document.'
type: enum
defaultValue: _self
choices:
- _blank
- _parent
- _self
- _top
- framename
elements:
- a
- area
- base
- form
type:
description: 'Specifies the media type of the linked resource.'
type: enum
elements:
- a
- area
- button
- input
- link
- object
- script
- source
- style
article:
name: Article
description: 'The article element represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable.'
level: block
unique: false
children:
- a
- abbr
- area
- audio
- b
- bdi
- bdo
- br
- cite
- code
- data
- del
- dfn
- div
- dl
- em
- embed
- figure
- form
- h1
- h2
- h3
- h4
- h5
- h6
- i
- iframe
- img
- ins
- kbd
- map
- mark
- object
- ol
- p
- picture
- pre
- q
- ruby
- s
- samp
- small
- span
- strong
- sub
- sup
- table
- time
- u
- ul
- var
- video
- wbr
aside:
name: Aside
description: 'The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content.'
level: block
unique: false
children:
- a
- abbr
- area
- audio
- b
- bdi
- bdo
- br
- cite
- code
- data
- dd
- del
- dfn
- div
- dl
- dt
- em
- embed
- figcaption
- figure
- h1
- h2
- h3
- h4
- h5
- h6
- i
- iframe
- img
- ins
- interactive
- kbd
- li
- map
- mark
- object
- ol
- p
- param
- picture
- pre
- q
- rp
- rt
- ruby
- s
- samp
- small
- source
- span
- strong
- sub
- sup
- table
- time
- track
- u
- ul
- var
- video
- wbr
audio:
name: Audio
description: 'The audio element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the source element.'
level: block
unique: false
attributes:
autoplay:
description: 'When present, it specifies that the audio or video will automatically start playing as soon as it can do so without stopping.'
type: boolean
elements:
- audio
- video
controls:
description: 'When present, it specifies that audio or video controls should be displayed (such as play, pause, and volume).'
type: boolean
elements:
- audio
- video
crossorigin:
type: enum
choices:
- anonymous
- use-credentials
loop:
description: 'When present, it specifies that the audio or video will start over again every time it is finished.'
type: boolean
elements:
- audio
- video
muted:
description: 'When present, it specifies that the audio output of the video should be muted.'
type: boolean
elements:
- audio
- video
preload:
type: enum
choices:
- auto
- metadata
- none
src:
description: 'Specifies the URL of the external resource to be embedded or referenced.'
type: uri
required: true
elements:
- audio
- embed
- iframe
- img
- input
- script
- source
- track
- video
text: string
b:
name: Bold
description: 'The b element represents a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood, such as key words in a document abstract, product names in a review, actionable words in interactive text-driven software, or an article lede.'
level: inline
unique: false
text: string
base:
name: Base
description: 'The base element specifies the base URL to use for all relative URLs in a document. There can be at maximum one <base> element in a document, and it must be inside the <head> element.'
level: void
unique_per_parent: true
parent: head
attributes:
href:
description: 'Specifies the URL of the linked resource. Special protocols such as mailto: or tel: can be used.'
type: uri
required: true
elements:
- a
- area
- base
- link
target:
description: 'Specifies where to open the linked document.'
type: enum
defaultValue: _self
choices:
- _blank
- _parent
- _self
- _top
- framename
elements:
- a
- area
- base
- form
bdi:
name: 'Bidirectional Isolation'
description: 'The bdi element represents a span of text that is to be isolated from its surroundings for the purposes of bidirectional text formatting. (Bidirectional-isolate)'
level: inline
unique: false
text: string
bdo:
name: 'Bidirectional Override'
description: 'The bdo element represents explicit text directionality formatting control for its children. It allows authors to override the Unicode bidirectional algorithm by explicitly specifying a direction override.'
level: inline
unique: false
text: string
blockquote:
name: Blockquote
description: 'The blockquote element represents a section that is quoted from another source. Content inside a blockquote must be quoted from another source, whose address, if it has one, may be cited in the cite attribute.'
level: block
unique: false
attributes:
cite:
description: 'Specifies the URL of the cited work or the name of the cited creative work.'
type: uri
elements:
- blockquote
- del
- ins
- q
children:
- p
body:
name: Body
description: 'The body element represents the content of an HTML document. All the contents such as text, images, headings, links, tables, etc. are placed between the body tags.'
level: block
unique: true
attributes:
onafterprint:
description: 'Fires after the associated document has started printing or the print preview has been closed.'
type: script
elements:
- body
onbeforeprint:
description: 'Fires before the associated document is printed or previewed for printing.'
type: script
elements:
- body
onbeforeunload:
description: 'Fires before the user navigates away from the page.'
type: script
elements:
- body
onhashchange:
description: 'Fires when the fragment identifier part of the URL changes.'
type: script
elements:
- body
onlanguagechange:
description: 'Fires when the user changes the preferred language of the user interface.'
type: script
elements:
- body
onmessage:
description: 'Fires when a message is received from a different browsing context (e.g., an iframe).'
type: script
elements:
- body
onmessageerror:
description: 'Fires when an error occurs while receiving a message from a different browsing context.'
type: script
elements:
- body
onoffline:
description: 'Fires when the browser goes offline.'
type: script
elements:
- body
ononline:
description: 'Fires when the browser goes online.'
type: script
elements:
- body
onpagehide:
description: 'Fires when the user navigates away from a page.'
type: script
elements:
- body
onpageshow:
description: 'Fires when the user navigates to a page.'
type: script
elements:
- body
onpopstate:
description: "Fires when the user navigates through the history by clicking the browser's Back or Forward buttons."
type: script
elements:
- body
onrejectionhandled:
description: 'Fires when a Promise is rejected and the rejection is handled by a Promise handler (e.g., catch).'
type: script
elements:
- body
onstorage:
description: 'Fires when a storage area (e.g., localStorage or sessionStorage) changes.'
type: script
elements:
- body
onunhandledrejection:
description: 'Fires when a Promise is rejected but there is no rejection handler (e.g., catch).'
type: script
elements:
- body
onunload:
description: 'Fires when the user is navigating away from the page (similar to onbeforeunload).'
type: script
elements:
- body
children:
- a
- abbr
- address
- area
- article
- aside
- audio
- b
- bdi
- bdo
- blockquote
- br
- button
- canvas
- cite
- code
- data
- datalist
- del
- details
- dfn
- dialog
- div
- dl
- em
- embed
- fieldset
- figure
- footer
- form
- h1
- h2
- h3
- h4
- h5
- h6
- header
- hr
- i
- iframe
- img
- input
- ins
- kbd
- label
- main
- map
- mark
- meter
- nav
- noscript
- object
- ol
- output
- p
- picture
- pre
- progress
- q
- ruby
- s
- samp
- script
- section
- select
- small
- span
- strong
- sub
- sup
- table
- template
- textarea
- time
- u
- ul
- var
- video
- wbr
br:
name: Break
description: 'The br element represents a line break.'
level: void
unique: false
attributes:
clear:
type: enum
choices:
- all
- left
- none
- right
button:
name: Button
description: 'The button element represents a clickable button, used to submit forms or anywhere in a document for accessible, standard button functionality.'
level: inline
unique: false
attributes:
autofocus:
description: 'When present, it specifies that an element should automatically get focus when the page loads.'
type: boolean
elements:
- a
- area
- button
- details
- iframe
- input
- object
- select
- textarea
disabled:
description: 'When present, it specifies that an input element should be disabled.'
type: boolean
elements:
- button
- fieldset
- input
- optgroup
- option
- select
- textarea
name:
description: 'Specifies the name associated with the element. The meaning may vary depending on the context.'
type: string
elements:
- a
- button
- fieldset
- form
- iframe
- input
- map
- meta
- object
- param
- select
- textarea
type:
description: 'Specifies the media type of the linked resource.'
type: enum
elements:
- a
- area
- button
- input
- link
- object
- script
- source
- style
value:
description: 'Specifies the value associated with the element. The meaning and usage may vary depending on the element type.'
type: string
elements:
- button
- input
- li
- meter
- option
- param
- progress
- select
- textarea
text: string
canvas:
name: Canvas
description: 'The canvas element is used to draw graphics, on the fly, via scripting (usually JavaScript).'
level: block
unique: false
attributes:
height:
description: 'Specifies the height of the element. The meaning may vary depending on the element type. Accepts integers, pixels (px), and percentages (%).'
type: string
elements:
- canvas
- embed
- iframe
- img
- input
- object
- video
width:
description: 'Specifies the width of the element. The meaning may vary depending on the element type. Accepts integers, pixels (px), and percentages (%).'
type: string
elements:
- canvas
- embed
- iframe
- img
- input
- object
- video
text: string
caption:
name: Caption
description: 'The caption element represents the title of the table that is its parent, if it has a parent and that is a table element.'
level: block
unique: false
text: string
unique_per_parent: true
parent: table
cite:
name: Citation
description: 'The cite element represents the title of a work (e.g. a book, a paper, an essay, a poem, a score, a song, a script, a film, a TV show, a game, a sculpture, a painting, a theatre production, a play, an opera, a musical, an exhibition, a legal case report, etc). This can be a work that is being quoted or referenced in detail (i.e. a citation), or it can just be a work that is mentioned in passing.'
level: inline
unique: false
text: string
code:
name: Code
description: 'The code element represents a fragment of computer code. This could be an XML element name, a filename, a computer program, or any other string that a computer would recognize.'
level: inline
unique: false
text: string
col:
name: Column
description: 'The col element represents a column in a table.'
level: void
unique: false
parent: colgroup
attributes:
span:
description: 'Specifies the number of columns the <col> element should span in a table.'
type: integer
elements:
- col
width:
description: 'Specifies the width of the element. The meaning may vary depending on the element type. Accepts integers, pixels (px), and percentages (%).'
type: string
elements:
- canvas
- embed
- iframe
- img
- input
- object
- video
colgroup:
name: 'Column Group'
description: 'The colgroup element represents a group of one or more columns in the table that is its parent, if it has a parent and that is a table element.'
level: block
unique: false
children:
- col
data:
name: Data
description: 'The data element represents its contents, along with a machine-readable form of those contents in the value attribute.'
level: inline
unique: false
attributes:
value:
description: 'Specifies the value associated with the element. The meaning and usage may vary depending on the element type.'
type: string
elements:
- button
- input
- li
- meter
- option
- param
- progress
- select
- textarea
text: string
dd:
name: 'Definition Description'
description: 'The dd element represents the description, definition, or value, part of a term-description group in a description list (dl element).'
level: block
unique_per_parent: true
parent: dl
children:
- a
- abbr
- area
- audio
- b
- bdi
- bdo
- br
- cite
- code
- data
- dd
- del
- dfn
- div
- dl
- dt
- em
- embed
- figure
- form
- i
- iframe
- img
- ins
- interactive
- kbd
- li
- map
- mark
- object
- ol
- p
- param
- picture
- pre
- q
- rp
- rt
- ruby
- s
- samp
- small
- source
- span
- strong
- sub
- sup
- table
- time
- track
- u
- ul
- var
- video
- wbr
del:
name: 'Deleted Text'
description: 'The del element represents a deletion from the document.'
level: block
unique: false
attributes:
cite:
description: 'Specifies the URL of the cited work or the name of the cited creative work.'
type: uri
elements:
- blockquote
- del
- ins
- q
datetime:
description: "Specifies the date and time of the change in the format 'YYYY-MM-DDThh:mm:ss' or a subset of it."
type: datetime
elements:
- del
- ins
- time
text: string
details:
name: Details
description: 'The details element represents a disclosure widget from which the user can obtain additional information or controls.'
level: block
unique: false
attributes:
open:
description: 'When present, it specifies that the details should be visible (open) to the user.'
type: boolean
elements:
- details
children:
- div
- dl
- form
- li
- ol
- p
- pre
- summary
- table
- ul
dfn:
name: Definition
description: 'The dfn element represents the defining instance of a term.'
level: inline
unique: false
text: string
dialog:
name: Dialog
description: 'The dialog element represents a part of an application that a user interacts with to perform a task, for example a dialog box, inspector, or window.'
level: block
unique: false
attributes:
open:
description: 'When present, it specifies that the details should be visible (open) to the user.'
type: boolean
elements:
- details
children:
- button
- div
- dl
- form
- heading
- interactive
- li
- ol
- p
- pre
- table
- ul
div:
name: Division
description: 'The div element has no special meaning at all. It represents its children. It can be used with the class, lang, and title attributes to mark up semantics common to a group of consecutive elements.'
level: block
unique: false
children:
- a
- abbr
- area
- audio
- b
- bdi
- bdo
- br
- cite
- code
- data
- dd
- del
- dfn
- div
- dl
- dt
- em
- embed
- figure
- form
- h1
- h2
- h3
- h4
- h5
- h6
- i
- iframe
- img
- ins
- interactive
- kbd
- li
- map
- mark
- object
- ol
- p
- param
- picture
- pre
- q
- rp
- rt
- ruby
- s
- samp
- small
- source
- span
- strong
- sub
- sup
- table
- time
- track
- u
- ul
- var
- video
- wbr
dl:
name: 'Definition List'
description: 'The dl element represents an association list consisting of zero or more name-value groups (a description list). Each group must consist of one or more names (dt elements) followed by one or more values (dd elements). Within a single dl element, there should not be more than one dt element for each name.'
level: block
unique: false
children:
- dd
- dt
dt:
name: 'Definition Term'
description: 'The dt element represents the term, or name, part of a term-description group in a description list (dl element).'
level: block
unique_per_parent: true
parent: dl
text: string
em:
name: Emphasis
description: 'The em element represents stress emphasis of its contents.'
level: inline
unique: false
text: string
embed:
name: Embed
description: 'The embed element provides an integration point for an external (typically non-HTML) application or interactive content.'
level: block
unique: false
attributes:
height:
description: 'Specifies the height of the element. The meaning may vary depending on the element type. Accepts integers, pixels (px), and percentages (%).'
type: string
elements:
- canvas
- embed
- iframe
- img
- input
- object
- video
src:
description: 'Specifies the URL of the external resource to be embedded or referenced.'
type: uri
required: true
elements:
- audio
- embed
- iframe
- img
- input
- script
- source
- track
- video
type:
description: 'Specifies the media type of the linked resource.'
type: enum
elements:
- a
- area
- button
- input
- link
- object
- script
- source
- style
width:
description: 'Specifies the width of the element. The meaning may vary depending on the element type. Accepts integers, pixels (px), and percentages (%).'
type: string
elements:
- canvas
- embed
- iframe
- img
- input
- object
- video
fieldset:
name: Fieldset
description: 'The fieldset element represents a set of form controls optionally grouped under a common name.'
level: block
unique: false
children:
- button
- datalist
- input
- label
- legend
- meter
- output
- progress
- select
- textarea
figcaption:
name: 'Figure Caption'
description: 'The figcaption element represents a caption or a legend associated with a figure or an illustration described by the rest of the data of the figure element. The figcaption element can be placed as the first or the last child of a parent figure element.'
level: block
unique: false
unique_per_parent: true
parent: figure
text: string
figure:
name: Figure
description: 'The figure element represents self-contained content, potentially with an optional caption, which is specified using the (optional) figcaption element.'
level: block
unique: false
children:
- figcaption
- img
footer:
name: Footer
description: 'The footer element represents a container for the bottom section of a document or a section, typically containing information about the author, copyright information, and links to related documents.'
level: block
unique: false
children:
- a
- abbr
- area
- audio
- b
- bdi
- bdo
- br
- cite
- code
- data
- dd
- del
- dfn
- div
- dl
- dt
- em
- embed
- figcaption
- figure
- h1
- h2
- h3
- h4
- h5
- h6
- i
- iframe
- img
- ins
- interactive
- kbd
- li
- map
- mark
- object
- ol
- p
- param
- picture
- pre
- q
- rp
- rt
- ruby
- s
- samp
- small
- source
- span
- strong
- sub
- sup
- table
- time
- track
- u
- ul
- var
- video
- wbr
form:
name: Form
description: 'The form element represents a section of a document containing interactive controls for submitting information to a web server.'
level: block
unique: false
attributes:
accept-charset:
description: 'Specifies the character encodings that are to be used for form submission.'
type: string
elements:
- form
action:
description: 'Specifies the URL where the form data should be submitted when the form is submitted.'
type: string
elements:
- form
autocomplete:
type: enum
choices:
- 'off'
- 'on'
enctype:
type: enum
choices:
- application/x-www-form-urlencoded
- multipart/form-data
- text/plain
method:
type: enum
choices:
- get
- post
name:
description: 'Specifies the name associated with the element. The meaning may vary depending on the context.'
type: string
elements:
- a
- button
- fieldset
- form
- iframe
- input
- map
- meta
- object
- param
- select
- textarea
novalidate:
description: 'When present, it specifies that a form should not be validated when submitted.'
type: boolean
elements:
- form
target:
description: 'Specifies where to open the linked document.'
type: enum
defaultValue: _self
choices:
- _blank
- _parent
- _self
- _top
- framename
elements:
- a
- area
- base
- form
children:
- button
- canvas
- datalist
- details
- dialog
- fieldset
- input
- label
- legend
- meter
- noscript
- output
- progress
- script
- select
- slot
- summary
- template
- textarea
h1:
name: 'Heading 1'
description: 'The h1 element represents a section heading. It has the highest rank among the six levels of section headings.'
level: block
text: string
unique: false
h2:
name: 'Heading 2'
description: 'The h2 element represents a section heading. It has the second highest rank among the six levels of section headings.'
level: block
text: string
unique: false
h3:
name: 'Heading 3'
description: 'The h3 element represents a section heading. It has the third highest rank among the six levels of section headings.'
level: block
text: string
unique: false
h4:
name: 'Heading 4'
description: 'The h4 element represents a section heading. It has the fourth highest rank among the six levels of section headings.'
level: block
text: string
unique: false
h5:
name: 'Heading 5'
description: 'The h5 element represents a section heading. It has the fifth highest rank among the six levels of section headings.'
level: block
text: string
unique: false
h6:
name: 'Heading 6'
description: 'The h6 element represents a section heading. It has the lowest rank among the six levels of section headings.'
level: block
text: string
unique: false
head:
name: Head
description: 'The head element contains meta-information about the HTML document, including its title and links to its scripts and stylesheets.'
level: void
unique_per_parent: true
parent: html
children:
- base
- link
- meta
- noscript
- script
- style
- title
header:
name: Header
description: "The header element represents a container for introductory content or a set of navigational links. It typically contains the section's heading (an h1–h6 element or an hgroup element), but can also contain other content such as a table of contents, a search form, or any relevant logos."
level: block
unique: false
children:
- a
- abbr
- area
- audio
- b
- bdi
- bdo
- br
- cite
- code
- data
- dd
- del
- dfn
- div
- dl
- dt
- em
- embed
- figcaption
- figure
- form
- h1
- h2
- h3
- h4
- h5
- h6
- i
- iframe
- img
- ins
- interactive
- kbd
- li
- map
- mark
- object
- ol
- p
- param
- picture
- pre
- q
- rp
- rt
- ruby
- s
- samp
- small
- source
- span
- strong
- sub
- sup
- table
- time
- track
- u
- ul
- var
- video
- wbr
hgroup:
name: 'Headings Group'
description: 'The hgroup element represents a multi-level heading for a section of a document. It groups a set of h1–h6 elements.'
level: block
unique: false
children:
- h1
- h2
- h3
- h4
- h5
- h6
hr:
name: 'Horizontal Rule'
description: 'The hr element represents a thematic break between paragraph-level elements. It is typically a horizontal rule or line.'
level: block
attributes:
align:
description: 'Specifies the horizontal alignment of the element.'
type: enum
choices:
- center
- justify
- left
- right
elements:
- caption
- col
- colgroup
- hr
- iframe
- img
- table
- tbody
- td
- tfoot
- th
- thead
- tr
color:
type: color
noshade:
type: boolean
size:
description: 'Specifies the height of a hr element in pixels.'
type: integer
elements:
- hr
width:
description: 'Specifies the width of the element. The meaning may vary depending on the element type. Accepts integers, pixels (px), and percentages (%).'
type: string
elements:
- canvas
- embed
- iframe
- img
- input
- object
- video
html:
name: HTML
description: 'The root element of an HTML document. It represents the top-level of the HTML structure.'
level: block
unique: true
attributes:
manifest:
description: "Specifies the address of the document's cache manifest."
type: uri
elements:
- html
children:
- body
- head
i:
name: Italic
description: 'The i element represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, a thought, or a ship name in Western texts.'
level: inline
unique: false
text: string
iframe:
name: 'Inline Frame'
description: 'The iframe element represents a nested browsing context, effectively embedding another HTML page into the current page.'
level: block
unique: false
attributes:
allowfullscreen:
description: 'Enables the iframe to be displayed in fullscreen mode.'
type: boolean
elements:
- iframe
height:
description: 'Specifies the height of the element. The meaning may vary depending on the element type. Accepts integers, pixels (px), and percentages (%).'
type: string
elements:
- canvas
- embed
- iframe
- img
- input
- object
- video
name:
description: 'Specifies the name associated with the element. The meaning may vary depending on the context.'
type: string
elements:
- a
- button
- fieldset
- form
- iframe
- input
- map
- meta
- object
- param
- select
- textarea
referrerpolicy:
description: 'Specifies the referrer policy for fetches initiated by the element.'
type: enum
choices:
- no-referrer
- no-referrer-when-downgrade
- origin
- origin-when-cross-origin
- same-origin
- strict-origin
- strict-origin-when-cross-origin
- unsafe-url
elements:
- a
- area
- iframe
- img
- link
sandbox:
type: string
seamless:
description: 'When present, it specifies that the iframe should look like it is a part of the containing document (no borders or scrollbars).'
type: boolean
elements:
- iframe
src:
description: 'Specifies the URL of the external resource to be embedded or referenced.'
type: uri
required: true
elements:
- audio
- embed
- iframe
- img
- input
- script
- source
- track
- video
srcdoc:
type: string
width:
description: 'Specifies the width of the element. The meaning may vary depending on the element type. Accepts integers, pixels (px), and percentages (%).'
type: string
elements:
- canvas
- embed
- iframe
- img
- input
- object
- video
img:
name: Image
description: 'The img element represents an image.'
level: inline
unique: false
attributes:
alt:
description: 'Specifies alternative text to be displayed when the image cannot be rendered.'
type: string
required: true
elements:
- area
- img
crossorigin:
type: enum
choices:
- anonymous
- use-credentials
decoding:
description: 'Specifies the decoding process applied to the image.'
type: enum
choices:
- async
- auto
- sync
elements:
- img
height:
description: 'Specifies the height of the element. The meaning may vary depending on the element type. Accepts integers, pixels (px), and percentages (%).'
type: string
elements:
- canvas
- embed
- iframe
- img
- input
- object
- video
ismap:
description: 'Specifies that an area should be part of an image map.'
type: boolean
elements:
- area
referrerpolicy:
description: 'Specifies the referrer policy for fetches initiated by the element.'
type: enum
choices:
- no-referrer
- no-referrer-when-downgrade
- origin
- origin-when-cross-origin
- same-origin
- strict-origin
- strict-origin-when-cross-origin
- unsafe-url
elements:
- a
- area
- iframe
- img
- link
sizes:
description: 'Specifies the sizes of the images or icons for different display/window sizes.'
type: string
elements:
- img
- link
- source
src:
description: 'Specifies the URL of the external resource to be embedded or referenced.'
type: uri
required: true
elements:
- audio
- embed
- iframe
- img
- input
- script
- source
- track
- video
srcset:
description: 'Specifies a set of image candidate URLs and descriptors for responsive images.'
type: string
elements:
- img
- source
usemap:
description: 'Specifies a client-side image map to be used with the element.'
type: string
elements:
- img
- object
width:
description: 'Specifies the width of the element. The meaning may vary depending on the element type. Accepts integers, pixels (px), and percentages (%).'
type: string
elements:
- canvas
- embed
- iframe
- img
- input
- object
- video
input:
name: Input
description: 'The input element represents a typed data field, usually with a form control to allow user input.'
level: inline
unique: false
attributes:
accept:
description: 'Specifies a comma-separated list of file types that the server accepts.'
type: string
elements:
- form
- input
alt:
description: 'Specifies alternative text to be displayed when the image cannot be rendered.'
type: string
required: true
elements:
- area
- img
autocomplete:
type: enum
choices:
- 'off'
- 'on'
checked:
description: 'When present, it indicates that an input element should be pre-selected (checked) when the page loads.'
type: boolean
elements:
- input
dirname:
description: 'Specifies the direction of the text.'
type: string
elements:
- input
- textarea
disabled:
description: 'When present, it specifies that an input element should be disabled.'
type: boolean
elements:
- button
- fieldset
- input
- optgroup
- option
- select
- textarea
height:
description: 'Specifies the height of the element. The meaning may vary depending on the element type. Accepts integers, pixels (px), and percentages (%).'
type: string
elements:
- canvas
- embed
- iframe
- img
- input
- object
- video
list:
description: 'Refers to a <datalist> element that contains pre-defined options for an input element.'
type: string
elements:
- input
max:
description: 'Specifies the maximum value for an input element, meter, or progress element.'
type: integer
elements:
- input
- meter
- progress
maxlength:
description: 'Specifies the maximum number of characters allowed in an input field.'
type: integer
elements:
- input
- textarea
min:
description: 'Specifies the minimum value for an input element or a meter element.'
type: string
elements:
- input
- meter
minlength:
description: 'Specifies the minimum number of characters required in an input field.'
type: integer
elements:
- input
- textarea
multiple:
description: 'When present, it specifies that the user is allowed to enter more than one value in an input element.'
type: boolean
elements:
- input
- select
- textarea
name:
description: 'Specifies the name associated with the element. The meaning may vary depending on the context.'
type: string
elements:
- a
- button
- fieldset
- form
- iframe
- input
- map
- meta
- object
- param
- select
- textarea
pattern:
description: "Specifies a regular expression that the <input> element's value is checked against."
type: string
elements:
- input
placeholder:
description: 'Specifies a short hint that describes the expected value of an input field.'
type: string
elements:
- input
- textarea
readonly:
description: 'When present, it specifies that an input element is read-only.'
type: boolean
elements:
- input
- textarea
required:
description: 'When present, it specifies that an input field must be filled out before submitting the form.'
type: boolean
elements:
- input
- select
- textarea
size:
description: 'Specifies the height of a hr element in pixels.'
type: integer
elements:
- hr
src:
description: 'Specifies the URL of the external resource to be embedded or referenced.'
type: uri
required: true
elements:
- audio
- embed
- iframe
- img
- input
- script
- source
- track
- video
step:
description: 'Specifies the legal number intervals for an input element.'
type: string
elements:
- input
type:
description: 'Specifies the media type of the linked resource.'
type: enum
elements:
- a
- area
- button
- input
- link
- object
- script
- source
- style
value:
description: 'Specifies the value associated with the element. The meaning and usage may vary depending on the element type.'
type: string
elements:
- button
- input
- li
- meter
- option
- param
- progress
- select
- textarea
width:
description: 'Specifies the width of the element. The meaning may vary depending on the element type. Accepts integers, pixels (px), and percentages (%).'
type: string
elements:
- canvas
- embed
- iframe
- img
- input
- object
- video
ins:
name: 'Inserted Text'
description: 'The ins element represents an addition to the document.'
level: block
unique: false
attributes:
cite:
description: 'Specifies the URL of the cited work or the name of the cited creative work.'
type: uri
elements:
- blockquote
- del
- ins
- q
datetime:
description: "Specifies the date and time of the change in the format 'YYYY-MM-DDThh:mm:ss' or a subset of it."
type: datetime
elements:
- del
- ins
- time
text: string
kbd:
name: 'Keyboard Input'
description: 'The kbd element represents user input (typically keyboard input, although it may also be used to represent other input methods, such as voice commands).'
level: inline
unique: false
text: string
label:
name: Label
description: "The label element represents a caption in a user interface. The caption can be associated with a specific form control, known as the label element's labeled control, either using the for attribute, or by putting the form control inside the label element itself."
level: inline
unique: false
attributes:
for:
description: 'Refers to the <datalist> element that contains the options for an input element.'
type: string
elements:
- label
- output
children:
- text
legend:
name: Legend
description: 'The legend element represents a caption for the content of its parent fieldset.'
level: block
unique_per_parent: true
parent: fieldset
attributes:
text:
description: 'Specifies the default value of the <textarea> element.'
type: string
elements:
- textarea
li:
name: 'List Item'
description: "The li element represents a list item. If its parent element is an ol, ul, or menu, then the element is an item of the parent element's list, as defined for those elements. Otherwise, the list item has no defined list-related semantics."
level: block
unique_per_parent: true
parent: 'ol | ul'
attributes:
value:
description: 'Specifies the value associated with the element. The meaning and usage may vary depending on the element type.'
type: string
elements:
- button
- input
- li
- meter
- option
- param
- progress
- select
- textarea
children:
- a
- abbr
- cite
- code
- data
- dfn
- div
- dl
- em
- figure
- i
- kbd
- ol
- p
- pre
- q
- s
- samp
- small
- strong
- sub
- sup
- time
- u
- ul
- var
link:
name: Link
description: 'The link element defines a link between a document and an external resource. It is used to link to external stylesheets.'
level: void
unique: false
attributes:
crossorigin:
type: enum
choices:
- anonymous
- use-credentials
href:
description: 'Specifies the URL of the linked resource. Special protocols such as mailto: or tel: can be used.'
type: uri
required: true
elements:
- a
- area
- base
- link
hreflang:
description: 'Specifies the language of the linked resource.'
type: language_iso
defaultValue: en
elements:
- a
- area
- link
integrity:
description: 'Specifies the integrity value of a resource.'
type: string
elements:
- link
- script
media:
description: 'Specifies the media type for which the linked resource or style sheet is intended.'
type: string
elements:
- link
- source
- style
referrerpolicy:
description: 'Specifies the referrer policy for fetches initiated by the element.'
type: enum
choices:
- no-referrer
- no-referrer-when-downgrade
- origin
- origin-when-cross-origin
- same-origin
- strict-origin
- strict-origin-when-cross-origin
- unsafe-url
elements:
- a
- area
- iframe
- img
- link
rel:
description: 'Specifies the relationship between the current document and the linked document.'
type: enum
choices:
- alternate
- author
- bookmark
- canonical
- help
- icon
- license
- next
- nofollow
- noreferrer
- prefetch
- prev
- search
- stylesheet
- tag
elements:
- a
- area
- link
sizes:
description: 'Specifies the sizes of the images or icons for different display/window sizes.'
type: string
elements:
- img
- link
- source
type:
description: 'Specifies the media type of the linked resource.'
type: enum
elements:
- a
- area
- button
- input
- link
- object
- script
- source
- style
main:
name: Main
description: 'The 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.'
level: block
unique: true
children:
- a
- abbr
- area
- audio
- b
- bdi
- bdo
- br
- cite
- code
- data
- dd
- del
- dfn
- div
- dl
- dt
- em
- embed
- figure
- form
- h1
- h2
- h3
- h4
- h5
- h6
- i
- iframe
- img
- ins
- interactive
- kbd
- li
- map
- mark
- object
- ol
- p
- param
- picture
- pre
- q
- rp
- rt
- ruby
- s
- samp
- small
- source
- span
- strong
- sub
- sup
- table
- time
- track
- u
- ul
- var
- video
- wbr
map:
name: Map
description: 'The map element, in conjunction with an img element and any area element descendants, defines an image map. The element represents a related collection of map areas.'
level: block
unique: false
attributes:
name:
description: 'Specifies the name associated with the element. The meaning may vary depending on the context.'
type: string
elements:
- a
- button
- fieldset
- form
- iframe
- input
- map
- meta
- object
- param
- select
- textarea
children:
- area
mark:
name: 'Marked Text'
description: "The mark element represents a run of text in one document marked or highlighted for reference or notation purposes, due to the marked passage's relevance or importance in the enclosing context."
level: inline
unique: false
children:
- area
- audio
- bdi
- bdo
- br
- del
- embed
- form
- iframe
- img
- ins
- interactive
- map
- object
- param
- picture
- rp
- rt
- ruby
- source
- span
- table
- track
- video
- wbr
meta:
name: Meta
description: 'The meta element provides metadata about the HTML document. Metadata will not be displayed on the page, but is machine-readable.'
level: void
unique: false
attributes:
charset:
description: 'Specifies the character encoding for the resource.'
type: string
elements:
- link
- meta
- script
content:
description: 'Specifies the value associated with the http-equiv or name attribute.'
type: string
elements:
- meta
http-equiv:
description: 'Provides an HTTP header for the information/value of the content attribute.'
type: enum
choices:
- content-language
- content-type
- default-style
- refresh
elements:
- meta
name:
description: 'Specifies the name associated with the element. The meaning may vary depending on the context.'
type: string
elements:
- a
- button
- fieldset
- form
- iframe
- input
- map
- meta
- object
- param
- select
- textarea
scheme:
description: 'Specifies the content type of the value attribute when the http-equiv attribute is used.'
type: string
elements:
- meta
meter:
name: Meter
description: 'The meter element represents a scalar measurement within a known range, or a fractional value.'
level: inline
unique: false
attributes:
high:
description: 'Specifies the high value for a range input or a meter element.'
type: string
elements:
- input
- meter
low:
description: 'Specifies the low value for a range input.'
type: string
elements:
- input
- meter
max:
description: 'Specifies the maximum value for an input element, meter, or progress element.'
type: integer
elements:
- input
- meter
- progress
min:
description: 'Specifies the minimum value for an input element or a meter element.'
type: string
elements:
- input
- meter
optimum:
description: 'Specifies the optimal value for a gauge or progress element.'
type: string
elements:
- meter
- progress
value:
description: 'Specifies the value associated with the element. The meaning and usage may vary depending on the element type.'
type: string
elements:
- button
- input
- li
- meter
- option
- param
- progress
- select
- textarea
nav:
name: Navigation
description: 'The nav element represents a section of a page whose purpose is to provide navigation links, either within the current document or to other documents.'
level: block
children:
- a
- cite
- em
- q
- s
- small
- strong
noscript:
name: NoScript
description: "The noscript element defines an alternate content for users that have disabled scripts in their browser or have a browser that doesn't support script."
level: block
unique: false
children:
- link
- meta
- style
- text
object:
name: Object
description: 'The 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.'
level: block
unique: false
attributes:
data:
description: 'Specifies the address of the external data that the object requires.'
type: string
elements:
- object
height:
description: 'Specifies the height of the element. The meaning may vary depending on the element type. Accepts integers, pixels (px), and percentages (%).'
type: string
elements:
- canvas
- embed
- iframe
- img
- input
- object
- video
name:
description: 'Specifies the name associated with the element. The meaning may vary depending on the context.'
type: string
elements:
- a
- button
- fieldset
- form
- iframe
- input
- map
- meta
- object
- param
- select
- textarea
type:
description: 'Specifies the media type of the linked resource.'
type: enum
elements:
- a
- area
- button
- input
- link
- object
- script
- source
- style
usemap:
description: 'Specifies a client-side image map to be used with the element.'
type: string
elements:
- img
- object
width:
description: 'Specifies the width of the element. The meaning may vary depending on the element type. Accepts integers, pixels (px), and percentages (%).'
type: string
elements:
- canvas
- embed
- iframe
- img
- input
- object
- video
ol:
name: 'Ordered List'
description: 'The ol element represents an ordered list of items. The order of the list is meaningful.'
level: block
unique: false
attributes:
reversed:
description: 'When present, it specifies that the list order should be descending (9,8,7...).'
type: boolean
elements:
- ol
start:
description: 'Specifies the starting value of an ordered list.'
type: integer
elements:
- ol
type:
description: 'Specifies the media type of the linked resource.'
type: enum
elements:
- a
- area
- button
- input
- link
- object
- script
- source
- style
children:
- li
optgroup:
name: 'Option Group'
description: 'The optgroup element represents a group of option elements with a common label.'
level: block
unique: false
parent: select
attributes:
disabled:
description: 'When present, it specifies that an input element should be disabled.'
type: boolean
elements:
- button
- fieldset
- input
- optgroup
- option
- select
- textarea
label:
description: 'Specifies a label for the associated form control, option group, or option.'
type: string
elements:
- label
- optgroup
- option
children:
- option
option:
name: Option
description: 'The option element represents an item in a select dropdown list.'
level: block
unique: false
parent: 'select | optgroup'
attributes:
disabled:
description: 'When present, it specifies that an input element should be disabled.'
type: boolean
elements:
- button
- fieldset
- input
- optgroup
- option
- select
- textarea
dummy:
type: string
label:
description: 'Specifies a label for the associated form control, option group, or option.'
type: string
elements:
- label
- optgroup
- option
selected:
description: 'When present, it specifies that an option should be pre-selected when the page loads.'
type: boolean
elements:
- option
value:
description: 'Specifies the value associated with the element. The meaning and usage may vary depending on the element type.'
type: string
elements:
- button
- input
- li
- meter
- option
- param
- progress
- select
- textarea
output:
name: Output
description: 'The output element represents the result of a calculation or user action.'
level: inline
unique: false
attributes:
for:
description: 'Refers to the <datalist> element that contains the options for an input element.'
type: string
elements:
- label
- output
p:
name: Paragraph
description: 'The p element represents a paragraph.'
level: block
unique: false
text: string
param:
name: Parameter
description: 'The param element defines parameters for an object element.'
level: void
unique: false
attributes:
name:
description: 'Specifies the name associated with the element. The meaning may vary depending on the context.'
type: string
elements:
- a
- button
- fieldset
- form
- iframe
- input
- map
- meta
- object
- param
- select
- textarea
value:
description: 'Specifies the value associated with the element. The meaning and usage may vary depending on the element type.'
type: string
elements:
- button
- input
- li
- meter
- option
- param
- progress
- select
- textarea
picture:
name: Picture
description: 'The picture element contains zero or more source elements and one img element to offer alternative versions of an image for different display/device scenarios.'
level: block
unique: false
children:
- img
- source
pre:
name: 'Preformatted Text'
description: 'The pre element represents preformatted text. Text within this element is typically displayed in a non-proportional font exactly as it is laid out in the file.'
level: block
unique: false
text: string
progress:
name: Progress
description: 'The progress element represents the completion progress of a task.'
level: inline
unique: false
attributes:
max:
description: 'Specifies the maximum value for an input element, meter, or progress element.'
type: integer
elements:
- input
- meter
- progress
value:
description: 'Specifies the value associated with the element. The meaning and usage may vary depending on the element type.'
type: string
elements:
- button
- input
- li
- meter
- option
- param
- progress
- select
- textarea
q:
name: Quotation
description: 'The q element represents some phrasing content quoted from another source.'
level: inline
unique: false
attributes:
cite:
description: 'Specifies the URL of the cited work or the name of the cited creative work.'
type: uri
elements:
- blockquote
- del
- ins
- q
text: string
rp:
name: 'Ruby Parenthesis'
description: 'The rp element is used to provide fallback parentheses for browsers non-supporting ruby annotations. It can be used in complex ruby markup to provide parentheses around the rt element for browsers that do not support ruby elements.'
level: inline
unique: false
text: string
rt:
name: 'Ruby Text'
description: 'The rt element marks 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 be a child of a ruby element.'
level: inline
unique: false
text: string
ruby:
name: Ruby
description: 'The ruby element represents a ruby annotation. Ruby annotations are short runs of text presented alongside base text, primarily used for East Asian typography to indicate pronunciation or to provide a short annotation.'
level: inline
unique: false
children:
- rp
- rt
s:
name: Strikethrough
description: 'The s element represents contents that are no longer accurate or no longer relevant.'
level: inline
unique: false
text: string
samp:
name: 'Sample Output'
description: 'The samp element represents sample (or quoted) output from a computer program.'
level: inline
unique: false
text: string
script:
name: Script
description: 'The script element is used to embed or reference an executable script within an HTML or XHTML document. Scripts without async or defer attributes, as well as inline scripts, are fetched and executed immediately, before the browser continues to parse the page.'
level: void
unique: false
attributes:
async:
description: 'When present, it specifies that the script will be executed asynchronously as soon as it is available.'
type: boolean
elements:
- script
charset:
description: 'Specifies the character encoding for the resource.'
type: string
elements:
- link
- meta
- script
crossorigin:
type: enum
choices:
- anonymous
- use-credentials
defer:
description: 'When present, it specifies that the script should be executed after the page has been parsed.'
type: boolean
elements:
- script
integrity:
description: 'Specifies the integrity value of a resource.'
type: string
elements:
- link
- script
nonce:
description: 'Specifies a cryptographic nonce that can be used in Content Security Policy (CSP) checks.'
type: string
elements:
- script
- style
referrerpolicy:
description: 'Specifies the referrer policy for fetches initiated by the element.'
type: enum
choices:
- no-referrer
- no-referrer-when-downgrade
- origin
- origin-when-cross-origin
- same-origin
- strict-origin
- strict-origin-when-cross-origin
- unsafe-url
elements:
- a
- area
- iframe
- img
- link
src:
description: 'Specifies the URL of the external resource to be embedded or referenced.'
type: uri
required: true
elements:
- audio
- embed
- iframe
- img
- input
- script
- source
- track
- video
type:
description: 'Specifies the media type of the linked resource.'
type: enum
elements:
- a
- area
- button
- input
- link
- object
- script
- source
- style
text: string
section:
name: Section
description: 'The section element helps in structuring the content of a webpage by grouping related information together.'
level: block
unique: false
children:
- a
- abbr
- area
- audio
- b
- bdi
- bdo
- br
- cite
- code
- data
- dd
- del
- dfn
- div
- dl
- dt
- em
- embed
- figcaption
- figure
- form
- h1
- h2
- h3
- h4
- h5
- h6
- i
- iframe
- img
- ins
- interactive
- kbd
- li
- map
- mark
- object
- ol
- p
- param
- picture
- pre
- q
- rp
- rt
- ruby
- s
- samp
- small
- source
- span
- strong
- sub
- sup
- table
- time
- track
- u
- ul
- var
- video
- wbr
select:
name: Select
description: 'The select element represents a control for selecting amongst a set of options.'
level: inline
unique: false
attributes:
autocomplete:
type: enum
choices:
- 'off'
- 'on'
disabled:
description: 'When present, it specifies that an input element should be disabled.'
type: boolean
elements:
- button
- fieldset
- input
- optgroup
- option
- select
- textarea
multiple:
description: 'When present, it specifies that the user is allowed to enter more than one value in an input element.'
type: boolean
elements:
- input
- select
- textarea
name:
description: 'Specifies the name associated with the element. The meaning may vary depending on the context.'
type: string
elements:
- a
- button
- fieldset
- form
- iframe
- input
- map
- meta
- object
- param
- select
- textarea
required:
description: 'When present, it specifies that an input field must be filled out before submitting the form.'
type: boolean
elements:
- input
- select
- textarea
size:
description: 'Specifies the height of a hr element in pixels.'
type: integer
elements:
- hr
children:
- optgroup
- option
slot:
name: Slot
description: 'The slot element 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.'
level: inline
unique: false
attributes:
name:
description: 'Specifies the name associated with the element. The meaning may vary depending on the context.'
type: string
elements:
- a
- button
- fieldset
- form
- iframe
- input
- map
- meta
- object
- param
- select
- textarea
children:
- div
- dl
- form
- heading
- interactive
- li
- ol
- p
- pre
- table
- ul
small:
name: Small
description: 'The small element represents side comments such as small print.'
level: inline
unique: false
text: string
source:
name: Source
description: 'The source element allows authors to specify multiple media resources for media elements. It is an empty element. It is commonly used within the picture element.'
level: void
unique: false
attributes:
media:
description: 'Specifies the media type for which the linked resource or style sheet is intended.'
type: string
elements:
- link
- source
- style
sizes:
description: 'Specifies the sizes of the images or icons for different display/window sizes.'
type: string
elements:
- img
- link
- source
src:
description: 'Specifies the URL of the external resource to be embedded or referenced.'
type: uri
required: true
elements:
- audio
- embed
- iframe
- img
- input
- script
- source
- track
- video
type:
description: 'Specifies the media type of the linked resource.'
type: enum
elements:
- a
- area
- button
- input
- link
- object
- script
- source
- style
span:
name: Span
description: "The span element doesn't mean anything on its own, but can be useful when used together with the global attributes, e.g. class, lang, or dir. It represents its children."
level: inline
unique: false
text: string
strong:
name: Strong
description: 'The strong element represents strong importance, seriousness, or urgency for its contents.'
level: inline
unique: false
text: string
style:
name: Style
description: 'The style element is used to embed CSS styles directly into an HTML document.'
level: void
unique: false
attributes:
disabled:
description: 'When present, it specifies that an input element should be disabled.'
type: boolean
elements:
- button
- fieldset
- input
- optgroup
- option
- select
- textarea
media:
description: 'Specifies the media type for which the linked resource or style sheet is intended.'
type: string
elements:
- link
- source
- style
nonce:
description: 'Specifies a cryptographic nonce that can be used in Content Security Policy (CSP) checks.'
type: string
elements:
- script
- style
title:
description: 'Specifies additional information about the element, typically displayed as a tooltip.'
type: string
elements:
- a
- abbr
- area
- audio
- button
- details
- iframe
- img
- input
- map
- object
- progress
- span
- strong
- sub
- sup
- svg
- time
- video
type:
description: 'Specifies the media type of the linked resource.'
type: enum
elements:
- a
- area
- button
- input
- link
- object
- script
- source
- style
sub:
name: Subscript
description: 'The sub element represents a subscript.'
level: inline
unique: false
text: string
summary:
name: Summary
description: "The summary element represents a summary, caption, or legend for the rest of the contents of the summary element's parent details element, if any."
level: block
unique_per_parent: true
parent: details
children:
- text
sup:
name: Superscript
description: 'The sup element represents a superscript.'
level: inline
unique: false
text: string
table:
name: Table
description: 'The table element represents tabular data — that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data.'
level: block
unique: false
children:
- caption
- colgroup
- tbody
- tfoot
- thead
- tr
tbody:
name: 'Table Body'
description: 'The tbody element groups one or more tr elements as the body of a table.'
level: block
unique: false
parent: table
children:
- tr
td:
name: 'Table Data'
description: 'The td element represents a data cell in a table.'
level: block
unique: false
parent: tr
attributes:
colspan:
description: 'Specifies the number of columns a table cell should span.'
type: integer
elements:
- td
- th
headers:
description: 'Specifies a list of header cells that represent the header for the cell.'
type: string
elements:
- td
- th
rowspan:
description: 'Specifies the number of rows a table cell should span.'
type: integer
elements:
- td
- th
template:
name: Template
description: 'The template element is a mechanism for holding client-side content that is not to be rendered when a page is loaded but may subsequently be instantiated during runtime using JavaScript.'
level: block
unique: false
children:
- div
- dl
- form
- heading
- interactive
- li
- ol
- p
- pre
- table
- ul
textarea:
name: Textarea
description: "The textarea element represents a multiline plain text edit control for the element's raw value."
level: inline
unique: false
attributes:
autocomplete:
type: enum
choices:
- 'off'
- 'on'
cols:
description: 'Specifies the visible width of a text area, in average character widths.'
type: integer
elements:
- textarea
dirname:
description: 'Specifies the direction of the text.'
type: string
elements:
- input
- textarea
disabled:
description: 'When present, it specifies that an input element should be disabled.'
type: boolean
elements:
- button
- fieldset
- input
- optgroup
- option
- select
- textarea
maxlength:
description: 'Specifies the maximum number of characters allowed in an input field.'
type: integer
elements:
- input
- textarea
minlength:
description: 'Specifies the minimum number of characters required in an input field.'
type: integer
elements:
- input
- textarea
name:
description: 'Specifies the name associated with the element. The meaning may vary depending on the context.'
type: string
elements:
- a
- button
- fieldset
- form
- iframe
- input
- map
- meta
- object
- param
- select
- textarea
placeholder:
description: 'Specifies a short hint that describes the expected value of an input field.'
type: string
elements:
- input
- textarea
readonly:
description: 'When present, it specifies that an input element is read-only.'
type: boolean
elements:
- input
- textarea
required:
description: 'When present, it specifies that an input field must be filled out before submitting the form.'
type: boolean
elements:
- input
- select
- textarea
rows:
description: 'Specifies the visible number of lines in a text area.'
type: integer
elements:
- textarea
wrap:
type: enum
choices:
- hard
- 'off'
- soft
tfoot:
name: 'Table Foot'
description: 'The tfoot element groups the footer content in a table.'
level: block
unique: true
parent: table
children:
- tr
th:
name: 'Table Header'
description: 'The th element represents a header cell in a table.'
level: block
unique: false
parent: tr
attributes:
colspan:
description: 'Specifies the number of columns a table cell should span.'
type: integer
elements:
- td
- th
headers:
description: 'Specifies a list of header cells that represent the header for the cell.'
type: string
elements:
- td
- th
rowspan:
description: 'Specifies the number of rows a table cell should span.'
type: integer
elements:
- td
- th
scope:
description: 'Specifies the set of header cells a data cell belongs to.'
type: string
elements:
- td
thead:
name: 'Table Head'
description: 'The thead element groups the header content in a table.'
level: block
unique: true
parent: table
children:
- tr
time:
name: Time
description: 'The time element represents a specific period in time. It may include the datetime attribute to translate dates into machine-readable format, allowing for better search engine results or custom features such as reminders.'
level: inline
unique: false
attributes:
datetime:
description: "Specifies the date and time of the change in the format 'YYYY-MM-DDThh:mm:ss' or a subset of it."
type: datetime
elements:
- del
- ins
- time
text: string
title:
name: Title
description: "The title element defines the title of the document, shown in a browser's title bar or a page's tab. It is only text, not meant to be displayed."
level: void
unique_per_parent: true
parent: head
text: string
tr:
name: 'Table Row'
description: 'The tr element represents a row of cells in a table.'
level: block
unique: false
parent: 'table | thead | tbody | tfoot'
children:
- td
- th
track:
name: Track
description: 'The 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. The tracks are formatted in WebVTT format (.vtt files) — Web Video Text Tracks.'
level: void
unique: false
attributes:
default:
description: 'Specifies that the track should be enabled by default when the page loads.'
type: boolean
elements:
- track
kind:
type: enum
choices:
- captions
- chapters
- descriptions
- metadata
- subtitles
label:
description: 'Specifies a label for the associated form control, option group, or option.'
type: string
elements:
- label
- optgroup
- option
src:
description: 'Specifies the URL of the external resource to be embedded or referenced.'
type: uri
required: true
elements:
- audio
- embed
- iframe
- img
- input
- script
- source
- track
- video
srclang:
description: 'Specifies the language of the track text data.'
type: string
elements:
- track
u:
name: Underline
description: 'The u element represents a span of text with an unarticulated, though explicitly rendered, non-textual annotation, such as labeling the text as being a proper name in Chinese text (a Chinese proper name mark), or labeling the text as being misspelt.'
level: inline
unique: false
text: string
ul:
name: 'Unordered List'
description: 'The ul element represents an unordered list of items, namely a collection of items that do not have a numerical ordering, and their order in the list is meaningless.'
level: block
unique: false
children:
- li
var:
name: Variable
description: 'The var element represents the name of a variable in a mathematical expression or a programming context.'
level: inline
unique: false
text: string
video:
name: Video
description: 'The video element is used to embed video content in a document, such as a movie clip or other video streams.'
level: block
unique: false
attributes:
autoplay:
description: 'When present, it specifies that the audio or video will automatically start playing as soon as it can do so without stopping.'
type: boolean
elements:
- audio
- video
controls:
description: 'When present, it specifies that audio or video controls should be displayed (such as play, pause, and volume).'
type: boolean
elements:
- audio
- video
crossorigin:
type: enum
choices:
- anonymous
- use-credentials
height:
description: 'Specifies the height of the element. The meaning may vary depending on the element type. Accepts integers, pixels (px), and percentages (%).'
type: string
elements:
- canvas
- embed
- iframe
- img
- input
- object
- video
loop:
description: 'When present, it specifies that the audio or video will start over again every time it is finished.'
type: boolean
elements:
- audio
- video
muted:
description: 'When present, it specifies that the audio output of the video should be muted.'
type: boolean
elements:
- audio
- video
poster:
description: "Specifies the URL of an image to be displayed as the video's poster (thumbnail) image."
type: string
elements:
- video
preload:
type: enum
choices:
- auto
- metadata
- none
src:
description: 'Specifies the URL of the external resource to be embedded or referenced.'
type: uri
required: true
elements:
- audio
- embed
- iframe
- img
- input
- script
- source
- track
- video
width:
description: 'Specifies the width of the element. The meaning may vary depending on the element type. Accepts integers, pixels (px), and percentages (%).'
type: string
elements:
- canvas
- embed
- iframe
- img
- input
- object
- video
wbr:
name: 'Word Break Opportunity'
description: 'The wbr element represents a word break opportunity.'
level: void
unique: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment