Supported HTML
Safari and WebKit implement a large subset of the HTML5 Specification defined by the World Wide Web Consortium (W3C). This reference defines every symbol in the specification that Safari implements. If a element is not listed here, it is not supported by Safari and WebKit.
HTML Tags
a
Specifies a hyperlink or a page anchor.
<a href="URL"> ... </a>
When the
href
attribute is used with thea
element, the text or image enclosed by the element becomes a hyperlink, linked to the URL specified byURL
. When thename
attribute is used, the element becomes an anchor that can be linked to by a hyperlink.
- Syntax
- Discussion
abbr
Specifies an abbreviated form of a string. Use abbr
instead of acronym
.
<abbr title="fullstring"> abbrev </abbr>
In Safari, the string specified by
abbr
is displayed onscreen while the content offullstring
is revealed in help element form by holding the mouse over the abbreviated value. This element is also useful for applications that read the underlying HTML code of a page, such as screen readers. Useabbr
instead ofacronym
.
- Syntax
- Discussion
acronym
Obsolete. Specifies the acronym form of a string. Use abbr
instead.
The
acronym
element behavior was identical to the behavior of theabbr
element.The
acronym
element has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
address
Specifies a street address.
<address> streetaddress </address>
The
address
element specifies a street address. The address enclosed within the element is italicized. Line breaks (such as ones between a street address and a city/state/zip) are not automatically inserted.
- Syntax
- Discussion
applet
Obsolete. Embeds a Java applet within a page. Use embed
or object
instead.
The applet is displayed at the location of the element in the page. The location of the applet is given by the URL specified by an
archive
parameter.The
applet
element has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
area
Specifies a specific area within an image map.
<area shape="shapetype" coords="coords" href="URL">
The
area
element defines discrete areas within an image map (defined by an enclosingmap
element). The area defined by this element acts as a hyperlink, linked to the URL specified byURL
, bounding shape specified byshape
, and coordinates specified bycoords
.
- Syntax
- Discussion
article
Specifies an independent section of a page.
Use
article
instead ofdiv
to contain a forum post, newspaper article, or blog entry. An article may be nested inside anotherarticle
element.
- Discussion
aside
Specifies a section of a page that is tangentially related to the surrounding content.
The
aside
element can indicate parenthetical content like pull quotes or sidebars.
- Discussion
audio
Embeds audio into a webpage.
<audio src="url"
autoplay="autoplay" <!-- Boolean attribute. Omit to prevent autoplay. -->
start="00:00:00.00"
loopstart="00:00:00.07" <!-- 7 seconds -->
loopend="00:00:00.19"
end="00:00:00.27"
playcount="4" <!-- play 4x -->
controls="true" >
The
audio
element might contain fallback content for browsers that do not support this element. Any content enclosed within theaudio
element is ignored by browsers that support theaudio
element (but it must be valid HTML).The
audio
element supports inclusion ofsource
elements to provide multiple versions of an audio clip encoded with different codecs, at different bit rates, and so on. Thesesource
elements must be the first elements inside theaudio
element before any fallback content. Seesource
for more information.
- Syntax
- Discussion
b
Displays text in a bold style.
<b> content </b>
The text specified by
content
is displayed in the bold style, but otherwise matches the style of the enclosing element. Consider usingem
to add emphasis andstrong
to indicate importance before choosingb
. Styles should be more finely tuned using CSS instead of using HTML style elements.
- Syntax
- Discussion
base
Defines the base URL for all linked objects on a page.
<base href="URL">
The URL specified by
href
acts as the base URL for any relatively linked object—such as an image, hyperlink, or Java applet—on the page. If a URL is specified absolutely (with a fully qualified URL), it is not affected by this element. Thebase
element must be placed in thehead
section of a page.
- Syntax
- Discussion
basefont
Obsolete. Specifies the base font for a page. Use CSS styling instead.
The font is used as the default font for the page unless otherwise specified. The font is specified by
face
, its size is specified bysize
, and its color is specified bycolor
. These attributes and their various options are defined inSupported Attributes
. Use CSS styling to set this property for the enclosing elements unless you have a specific reason to usebasefont
.The
basefont
element has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
bdi
Specifies text that may be displayed in a unique direction.
<p> English content and <bdi> Arabic content </bdi> </p>
Use
bdi
when the directional display of the text is unknown. Unlikebdo
elements,bdi
elements are not automatically displayed in a unique direction. See http://www.w3.org/TR/CSS2/visuren.html#direction for more information on directional text.
- Syntax
- Discussion
bdo
Displays text in a different direction.
<bdo dir="dir"> content </bdo>
The text specified by
content
is displayed left to right ifdir
is set toltr
; it is displayed right-to-left if it is set tortl
. See http://www.w3.org/TR/CSS2/visuren.html#direction for more information on directional text.
- Syntax
- Discussion
big
Obsolete. Displays text in a large size. Use CSS styling instead.
The text specified by
content
is displayed in a larger size but otherwise matches the style of the enclosing element. Styles should be more finely tuned using CSS instead of using HTML style elements.The
big
element has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
blockquote
Displays text in an indented quotation style.
<blockquote> content </blockquote>
The text specified by
content
is indented (on both sides of the text block), but otherwise matches the style of the enclosing element. Styles should be more finely tuned using CSS instead of using HTML style elements.
- Syntax
- Discussion
body
Defines the entirety of the document body.
<body> content </body>
The content specified by
content
comprises most of the content of the page.
- Syntax
- Discussion
br
Represents a single line break.
<br>
Layout should be more finely tuned using CSS instead of using HTML style elements.
- Syntax
- Discussion
button
Defines an interactive button on a page.
<button> content </button>
The text specified by
content
is displayed within the frame of the button. This differs from thebutton
input type in that you can specify content within thebutton
element.
- Syntax
- Discussion
canvas
Specifies an advanced drawing region.
<canvas id="identifer" height="value" width="value">
The
canvas
element specifies the location of an advanced drawing region. Thecanvas
element supports the same attributes as theimg
element with the exception of thesrc
attribute, which is ignored for thecanvas
element. You can specify any of the other attributes you would normally specify for an image. The identifier specified byid
is required for Dashboard widgets, as are the height and width specified byheight
andwidth
, respectively.Read Safari HTML5 Canvas Guide for more information.
- Syntax
- Discussion
caption
Defines a caption for an HTML table.
<caption> content </caption>
The text specified by
content
is displayed as a caption for the table in which the caption is enclosed.
- Syntax
- Discussion
center
Deprecated. Defines a region of content to be centered. Use CSS styling instead.
The content wrapped by the
center
element is centered within its enclosing element. Styles should be more finely tuned using CSS instead of using HTML style elements.The
center
element has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
cite
Specifies a citation.
<cite> content </cite>
The
cite
element specifies a citation. The text enclosed within the element is italicized.
- Syntax
- Discussion
code
Specifies text as computer code.
<code> content </code>
The
code
element specifies a block of code. The text enclosed within the element uses a "teletype" monospaced character font.
- Syntax
- Discussion
col
Specifies attributes of columns in a table.
<col properties >
The
col
element allows you specify attributes for a given table column, with those attributes specified byproperties
. A series ofcol
elements must be placed in order of the actual table columns. These elements must be placed within a table or acolgroup
.
- Syntax
- Discussion
colgroup
Specifies attributes for multiple columns in a table.
<colgroup properties ></colgroup>
The
colgroup
element specifies attributes for multiple table columns, with those attributes specified byproperties
. For example, to set center column alignment for three different columns, you would use<colgroup span="3">
. These elements must be placed within a table.
- Syntax
- Discussion
command
Obsolete. Specifies a command the user can invoke. Use menuitem
instead.
The
command
element has been declared obsolete in the HTML5 specification.
- Discussion
datalist
Contains a set of option
elements for a control.
<input name="state" list="states">
<datalist id="states">
<option>Alabama</option>
<option>Alaska</option>
…
<option>Wyoming</option>
</datalist>
- Syntax
dd
Specifies a definition for a term.
<dd> content </dd>
The
dd
element specifies a definition for a term within an HTML definition list. The text enclosed within the element is indented under the term specified by the enclosingdt
block.
- Syntax
- Discussion
del
Specifies a block of deleted text.
<del> content </del>
The
del
element specifies a block of deleted text, which is marked with a horizontal line through the center.
- Syntax
- Discussion
details
Specifies a control for additional information, typically displaying a disclosure triangle.
<details>
<summary> Summary info </summary>
<p> Detailed information </p>
</details>
Nested content is revealed on user interaction. The
summary
element should be included in adetails
element.The
details
element was introduced in the HTML5 specification.
- Syntax
- Discussion
- Availability
dfn
Specifies a definition.
<dfn> content </dfn>
The
dfn
element specifies a definition of any sort.
- Syntax
- Discussion
dir
Obsolete. Specifies a directory list. Use CSS styling or list elements as appropriate.
The
dir
element specifies a directory list, each element of which is specified by anli
element. List styles should be more finely tuned using CSS instead of using HTML style elements, and the structure should be defined instead with theul
andol
elements.The
dir
element has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
div
Specifies a styleless section in a document.
<div> content </div>
The
div
element specifies a section in a document as a block element. Multiple divs stack vertically on the page. Use CSS styles to tune the style properties of this element.
- Syntax
- Discussion
dl
Specifies a definition list.
<dl> content </dl>
The
dl
element specifies a definition list. Within the bounds of this block, terms to be defined should be marked using thedt
element, and their definitions should be marked using thedd
element.
- Syntax
- Discussion
dt
Specifies a definition term.
<dt> content </dt>
The
dt
element specifies a definition term. It should be used to mark an actual term within the bounds of a definition list (dl
). Definitions should follow each term, and be marked using thedd
element.
- Syntax
- Discussion
em
Specifies emphasized text.
<em> content </em>
The
em
element specifies a block of emphasized text. Use CSS to finely tune styles instead of using HTML style elements.
- Syntax
- Discussion
embed
Deprecated. Embeds an object within a page. Use the object
element to embed objects.
The object, if visible, is displayed at the location of the element in the page, with a height specified by
height
and a width specified bywidth
. The location of the object is given by the URL specified bysrc
, orcode
if the applet is in a standard Java class file.The
embed
element has been deprecated in the HTML 4.01 standard.
- Discussion
- Availability
fieldset
Specifies a set of fields.
<fieldset>
caption input
caption input
</fieldset>
The
fieldset
element encloses a set of input fields, and draws a box around them. The fields themselves are made with input elements specified byinput
and the names of the fields are plaintext specified bycaption
.
- Syntax
- Discussion
figcaption
Specifies a caption for a figure
element.
figure
The content specified by figure
may be removed without affecting the page flow.
<figure>
<img src="image.png" alt="Description of image">
<figcaption>Figure 1. An HTML element.</figcaption>
</figure>
Typically includes an image or video; may include a caption (
figcaption
).
- Syntax
- Discussion
font
Obsolete. Defines a font style for the content the element encloses. Use CSS styling instead.
The content specified by
content
is altered based on a variety of properties, such asface
,size
, andcolor
. Styles should be more finely tuned using CSS instead of using HTML style elements.The
font
element has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
footer
Specifies content for the section footer.
The
footer
element was introduced in the HTML5 specification.
- Availability
form
Specifies an HTML form.
The
form
element specifies a form on a page. Each individual form (with its variety of inputs such as checkboxes, text fields, and password fields) should be enclosed in its own form element. If using the form for some kind of submission, the form's submit button should also be enclosed within this element.Form elements are described in Supported Attributes.
- Discussion
frame
Obsolete. Displays a URL in an inline frame. Use iframe
instead.
The
frame
element specifies a directory list, each element of which is specified by anli
element. List styles should be more finely tuned using CSS instead of using HTML style elements, and the structure should be defined instead with theul
andol
elements.The
frame
element has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
frameset
Obsolete. Specifies a frameset. Use iframe
instead.
The
frameset
element specifies the overall frameset for a number of frames (each specified with theframe
element. The URL for the frame is specified bysrc
. The size of each column should be specified by thecols
androws
properties.The
frameset
element has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
h1 - h2 - ... - h6
Specifies various headers.
<h#> content </h#>
Heading elements specify a block of header text, with
h1
representing the largest font size andh6
representing the smallest. Styles should be more finely tuned using CSS instead of using HTML style elements.
- Syntax
- Discussion
head
Specifies metainformation about the HTML document.
<head> content </head>
The
head
element can contain a number of informational elements, such astitle
for the page title orstyle
for a CSS definition block.
- Syntax
- Discussion
header
Specifies .
<header> content </header>
.
- Syntax
- Discussion
hgroup
Specifies .
<hgroup> content </hgroup>
.
- Syntax
- Discussion
hr
Specifies a horizontal line.
The
hr
element specifies a horizontal line. Styles should be more finely tuned using CSS instead of using HTML style elements.
- Discussion
html
Specifies the HTML document.
The
html
element specifies an HTML document, and should encompass all the content of the page.
- Discussion
i
Displays text in an italic style.
<i> content </i>
The text specified by
content
is displayed in the italic style, but otherwise matches the style of the enclosing element. Consider using theem
,strong
,mark
,cite
, anddfn
elements before choosingi
. Styles should be more finely tuned using CSS instead of using HTML style elements.
- Syntax
- Discussion
iframe
Displays a URL in an inline frame.
<iframe src="URL"></iframe>
The URL specified by
src
loads into an inline frame placed wherever theiframe
element is entered.
- Syntax
- Discussion
img
Displays an inline image.
<img src="img.jpg" srcset="img_HD.jpg 2x, img_sm.jpg 100w, img_smHD.jpg 100w 2x">
The image file specified by
src
orsrcset
is displayed inline in the enclosing element. Descriptors insrcset
refer to maximum pixel width (w
), height (h
), or density (x
).
- Syntax
- Discussion
input
Displays an input for an HTML form.
<input type="type">
The
input
element specifies an input mechanism in an HTML form. The available types of input are listed inSupported Input Values
.
- Syntax
- Discussion
ins
Specifies a block of inserted text.
<ins> content </ins>
The
ins
element specifies a block of inserted text, which is marked with an underline.
- Syntax
- Discussion
kbd
Specifies text as keyboard text.
<kbd> content </kbd>
The
kbd
element specifies a block of keyboard text. The text enclosed within the element uses a "teletype" monospaced character font.
- Syntax
- Discussion
keygen
Provides public key generation for forms.
<keygen name="name" challenge="challenge_value">
The
keygen
element places a form element on the page, which generates a 512, 1024, or 2048-bit public key as its value. The challenge specified bychallenge
and the public key are DER encoded and digitally signed with a private key (stored in a local database). The result is then encoded in Base64 and is returned as the value of this field.
- Syntax
- Discussion
label
Specifies a label for input controls.
<label for="id"> content </label>
The
label
element specifies a label for the input control whose name is specified byfor
. The text specified bycontent
makes up the body of the label.
- Syntax
- Discussion
layer
Specifies individual layers on a webpage. The layer
element is not well-supported and should be replaced with iframe
frames using CSS styling techniques in HTML 4.01 Transitional documents. In HTML 4.01 Strict documents, layer
should be replaced with object
or div
.
<layer> content </layer>
The
layer
element specifies an independent layer of content on a webpage.
- Syntax
- Discussion
legend
Specifies the caption for a fieldset.
<legend> content </legend>
The
legend
element specifies the label for a fieldset (specified by thefieldset
element). The caption specified bycontent
is merged with the box surrounding the fieldset.
- Syntax
- Discussion
li
Specifies a list element.
<li> content </li>
Within a list block (specified by
ul
for an unordered list, orol
for an ordered list),li
specifies single list element, whose content is specified bycontent
. List styles should be more finely tuned using CSS instead of using HTML style elements.
- Syntax
- Discussion
link
Specifies a connection to an external file.
<link href="URL">
The
link
element specifies an external file that is related to the HTML document it is enclosed in. For example, you should uselink
in the head of an HTML document to specify an external CSS stylesheet.
- Syntax
- Discussion
listing
Obsolete. Indicates a block of preformatted text. Use pre
and code
instead.
The
listing
element has been declared obsolete in the HTML5 specification.
- Availability
main
Specifies the main content of the body
element.
Only one
main
element is included in abody
element. The main content should not be nested in other block elements.
- Discussion
map
Specifies a browser-processed image map.
<map name="id" id="id">
The
map
element encloses thearea
elements that define the regions of an image map. The identifier specified byid
and the name specified byname
should be used by animg
element’susemap
property.
- Syntax
- Discussion
mark
Specifies a highlighted element.
The
mark
element can be used to highlight search results.
- Discussion
marquee
Obsolete. Specifies a horizontally scrolling block of content. Use JavaScript instead.
The
marquee
element specifies a block of content that scrolls horizontally.The
marquee
element has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
menu
Specifies a menu list.
The
menu
element specifies a menu list. Within the bounds of this block, terms to be defined should be marked using thedt
element, and their definitions should be marked using thedd
element. Themenu
element was deprecated in the HTML 4.01 standard but reintroduced in HTML5.
- Discussion
meta
Specifies metainformation about an HTML page.
<meta name="title" content="content">
The
meta
element specifies a list of metainformation about a page, such as keywords for a search engine to index. The title specified byname
defines what metainformation you are displaying. The text specified bycontent
is the actual metainformation.For information on Apple-specific meta tag keys, see
Supported Meta Tags
.
- Syntax
- Discussion
meter
Displays a gray horizontal bar with an area of color inside, representing a scalar or fractional value. Similar to the progress
element.
<p> Player 1: 16 out of 20 honor <meter min="0" max="20" low="0" high="20" value="16"> 16 out of 20 </meter> </p>
<p> Player 2: 20% of recruitable heroes <meter value="0.20"> 20% of recruitable heroes </meter> </p>
Use
progress
to illustrate task completion. Usemeter
to show a value in a range.The
meter
element was introduced in the HTML5 specification.
- Syntax
- Discussion
- Availability
nav
Specifies a section with navigation links.
<nav>
<ul>
<li><a href="#">Link1</a></li>
<li><a href="#">Link2</a></li>
<li><a href="#">Link3</a></li>
</ul>
</nav
You can create multiple
nav
elements in one document. Thenav
element was introduced in the HTML5 specification.
- Syntax
- Discussion
nobr
Obsolete. Specifies a region of content with no embedded line breaks. Use CSS styling instead.
The content displays with no line breaks. Use the
nobr
element for text blocks that must remain on one line.The
nobr
element has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
noembed
Obsolete. Specifies content to display when embedded objects are not supported. Use object
if necessary.
The
noembed
element specifies a block of content that displays in browsers that do not support embedded objects.The
noembed
element has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
noframes
Obsolete. Specifies content that displays in browsers that do not support frames. There is no replacement element.
The
noframes
element specifies a block of content that displays in browsers that do not support frames or have them deactivated. Because frames are no longer supported thenoframe
element is not needed.The
noframes
element has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
nolayer
Specifies content that displays in browsers that do not support layers.
<nolayer> content </nolayer>
The
nolayer
element specifies a block of content that displays in browsers that do not support layers.
- Syntax
- Discussion
noscript
Specifies content to display in browsers that do not run scripts.
<noscript> content </noscript>
The
noscript
element specifies a block of content that displays in browsers that do not support the execution of scripts or have them deactivated.
- Syntax
- Discussion
object
Embeds an object within a page.
<object height="value" width="value" archive="URL" data="URL"> content </object>
<object height="value" width="value" data="URL" codebase="URL"> content </object>
The object is displayed at the location of the element in the page, with a height specified by
height
and a width specified bywidth
.The location of the object is given by the URL specified by
archive
for a Java archive,data
for some arbitrary embedded data (an image, for example), orcodebase
for object code of any other type.
- Syntax
- Discussion
ol
Specifies an ordered list.
<ol> content </ol>
The
ol
element specifies an ordered, numbered list. Within the bounds of this block, list items should be defined using theli
element.
- Syntax
- Discussion
optgroup
Specifies a group of options.
<optgroup label="label"> options </optgroup>
Within a
select
input type, theoptgroup
element specifies a subgroup of options. Within the bounds of this block, individual options are specified using theoption
element. The title of the subgroup is specified bylabel
, and in Safari is displayed as bold gray text, with the subgroup’s associated options indented under it.
- Syntax
- Discussion
option
Specifies a list option.
<option value="value"> title </option>
Within a
select
input type, theoption
element specifies a single selectable option. The form value of the option is specified byvalue
, and its visible name is specified bytitle
. These elements can be placed directly within aselect
input type or within anoptgroup
within aselect
element.
- Syntax
- Discussion
output
Specifies the result of a calculation.
<output name="result"> content </output>
Use a script to add the result to the text specified by
content
.The
output
element was introduced in the HTML5 specification.
- Syntax
- Discussion
- Availability
p
Displays a paragraph.
<p> content </p>
The
p
element indicates a paragraph in the document.
- Syntax
- Discussion
param
Represents a parameter for an object
declaration.
<param name="name" value="value">
The
param
element represents a specific parameter for an embeddedobject
element. You can place any number of these, but they must be enclosed within theobject
block. The parameter’s name/key is specified byname
and its value is specified byvalue
.
- Syntax
- Discussion
plaintext
Obsolete. Represents a MIME type. Use "text/plain"
instead.
MIME types indicate the type of media to be displayed.
The
plaintext
element has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
pre
Represents a block of preformatted text.
<pre> content </pre>
The
pre
element preserves the formatting of the block of text specified bycontent
, specifically line breaks and multiple spaces. Normal text operation in Safari displays no difference between a single space and multiple consecutive spaces. In Safari, text enclosed in this element is also rendered in a monospace "teletype" font.
- Syntax
- Discussion
progress
Displays a representation of task completion. Similar to the meter
element.
<progress value="100" max="450"> 45% </progress>
Use
progress
to illustrate task completion. Usemeter
to show a value in a range.The
progress
element was introduced in the HTML5 specification.
- Syntax
- Discussion
- Availability
q
Displays an inline quotation.
<q> content </q>
The text specified by
content
is displayed in quotes, but otherwise matches the style of the enclosing element. Styles should be more finely tuned using CSS instead of using HTML style elements.
- Syntax
- Discussion
rp
Specifies parenthesis to display if the ruby
element is not supported.
<ruby>
漢 <rp> ( </rp> <rt> Kan </rt> <rp> ) </rp>
</ruby>
The
rp
element was introduced in the HTML5 specification.
- Syntax
- Discussion
- Availability
ruby
Specifies a ruby annotation showing pronunciation of East Asian characters.
<ruby>
漢 <rp> ( </rp> <rt> Kan </rt> <rp> ) </rp>
</ruby>
Th
ruby
element was introduced in the HTML5 specification.
- Syntax
- Availability
rt
Specifies the pronunciation of East Asian characters.
<ruby>
漢 <rp> ( </rp> <rt> Kan </rt> <rp> ) </rp>
</ruby>
The
rt
element was introduced in the HTML5 specification.
- Syntax
- Availability
s
Deprecated. Defines a block of text in strikethrough style. Use del
to indicate document edits.
The content inside the
s
element is rendered with a horizontal line through the center. Thedel
element is more appropriate to show text that was removed. Styles should be more finely tuned using CSS instead of using HTML style elements when possible.The
s
element has been deprecated in the HTML 4.01 standard.
- Discussion
- Availability
samp
Specifies text as sample code.
<samp> content </samp>
The
samp
element specifies a block of code. The text enclosed within the element uses a "teletype" monospaced character font.
- Syntax
- Discussion
script
Embeds and executes script code.
<script type="mimetype"> code </script>
The
script
element specifies a block of script code, such as JavaScript. The code specified bycode
is invisible onscreen, but is visible in the page source. Code embedded withinscript
elements (unless defined inside functions) is executed immediately on page load. The MIME type of the script should be specified bytype
.
- Syntax
- Discussion
section
Specifies a generic section of a document when article
is not appropriate.
<section>
<h1> Heading </h1>
<p> content </p>
</section>
The content in a
section
should be related. If content is unrelated use adiv
element for grouping.The
section
element was introduced in the HTML5 specification.
- Syntax
- Discussion
- Availability
select
Specifies a selection input type.
<select> options </select>
The
select
element specifies a selection menu. This block must contain a set ofoption
elements oroptgroup
elements containing options. In Safari, if thesize
property is explicitly set for this element, the input box resembles a Mac OS X combo box, otherwise it resembles a pop-up menu.
- Syntax
- Discussion
small
Displays text in a small size.
<small> content </small>
The text specified by
content
is displayed in a smaller size, but otherwise matches the style of the enclosing element. Styles should be more finely tuned using CSS instead of using HTML style elements.
- Syntax
- Discussion
source
Provides a resource URI for a multimedia element such as audio
or video
.
<video poster="bananas.png" ... >
<source
src="bananas.mp4"
type="video/mp4; codecs="avc1.42E01E, mp4a.40.2""
media="screen"
pixelration="1.78" <!-- 16:9 -->
>
</source>
<source ...></source>
<source ...></source>
<!-- Fallback content for browsers that do not support the video element goes here. -->
</video>
Specify type and codec information appropriately. Browsers use this information to choose the media that is most appropriate according to available codecs, and screen resolution.
Available in Safari 3.1 and later.
- Syntax
- Discussion
- Availability
span
Specifies an inline styleless section in a document.
<span> content </span>
The
span
element specifies a section in a document. Multiple consecutive spans are placed horizontally on the page by default. Use CSS styles to tune the style properties of this element.
- Syntax
- Discussion
strike
Obsolete. Defines a block of text in strikethrough style. Use the del
instead.
The content specified by
content
is rendered with a horizontal line through the center. Thedel
element is more appropriate for this function. Styles should be more finely tuned using CSS instead of using HTML style elements.The
strike
element has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
strong
Specifies important text.
<strong> content </strong>
The
strong
element specifies a block of text with "strong" importance. Styles should be more finely tuned using CSS instead of using HTML style elements.
- Syntax
- Discussion
style
Defines an inline stylesheet.
<style type="mimetype"> css_declarations </style>
The
style
element specifies a CSS stylesheet within the page. All CSS declarations should be placed within this block. This element should be placed in thehead
section of a page. If you are linking to an external stylesheet, use thelink
element instead.
- Syntax
- Discussion
sub
Specifies text as subscript.
<sub> content </sub>
The text specified by
content
is displayed in a smaller size and is subscripted, but otherwise matches the style of the enclosing element. Styles should be more finely tuned using CSS instead of using HTML style elements.
- Syntax
- Discussion
summary
Specifies a summary for a details
element.
<details>
<summary> Summary info </summary>
<p> Detailed information </p>
</details>
When a
details
elementsummary
is absent the heading "details" is used by default.The
summary
element was introduced in the HTML5 specification.
- Syntax
- Discussion
- Availability
sup
Specifies text as superscript.
<sup> content </sup>
The text specified by
content
is displayed in a smaller size and is superscripted, but otherwise matches the style of the enclosing element. Styles should be more finely tuned using CSS instead of using HTML style elements.
- Syntax
- Discussion
table
Defines a data table.
<table> content </table>
The
table
element defines a table structure for a page. The HTML specified bycontent
should contain the other structural elements such as table rows (tr
) and table cells (td
).
- Syntax
- Discussion
tbody
Defines a table’s body.
<tbody> content </tbody>
The
tbody
element defines the body for a table. This element is only a structural definition and by default does not render anything unique, so the HTML specified bycontent
should contain the other structural elements such as table rows (tr
) and table cells (td
).
- Syntax
- Discussion
td
Defines a table cell.
<td> content </td>
The
td
element defines a cell within a table. Cells are usually enclosed by table row (tr
) definitions. Consecutive table cells are placed horizontally onscreen.
- Syntax
- Discussion
textarea
Specifies a text area input type.
<textarea rows="value" cols="value"> content </textarea>
The
textarea
element specifies a scrollable, multiline text input block. You can specify its size onscreen by specifying values forrows
andcols
.Safari on iOS extends the
textarea
element with two additional properties,autocorrect
andautocapitalize
, described inSupported HTML
.
- Syntax
- Discussion
tfoot
Defines a table’s footer.
<tfoot> content </tfoot>
The
tfoot
element defines a footer for a table. This element is only a structural definition and by default does not render anything unique, so the HTML specified bycontent
should contain the other structural elements such as table rows (tr
) and table cells (td
).The
meter
element was introduced in the HTML5 specification.
- Syntax
- Discussion
th
Defines header text for a table column.
<th> content </th>
Table headers should be placed in their own table row, usually the first row in a table definition, and should correspond in number to table cell definitions in later rows. In Safari, the text specified by
content
is displayed in a bold face.
- Syntax
- Discussion
thead
Defines a table’s header.
<thead> content </thead>
The
thead
element defines a header for a table. This element is only a structural definition and by default does not render anything unique, so the HTML specified bycontent
should contain the other structural elements such as table rows (tr
) and table cells (td
).
- Syntax
- Discussion
title
Defines the visible window title for the page.
<title> content </title>
The text specified by
content
is displayed at the top of a browser window, but remains invisible in embedded WebKit web views unless requested programatically. Thetitle
element must be placed in thehead
section of a page.
- Syntax
- Discussion
tr
Defines a table row.
<tr> content </tr>
The
tr
element defines a row within a table. Table cells are usually enclosed by these rows. Consecutive table rows are placed vertically onscreen.
- Syntax
- Discussion
track
Specifies a text component of the parent audio
or video
element.
<video src="mysource.mp4">
<track kind="captions" src="myCaptions.srt">
<track kind="description" src="myDescription.srt">
</video>
The track element can indicate
subtitles
,captions
,description
,chapters
ormetadata
through thekind
attribute. See Safari HTML5 Audio and Video Guide for more information.The
track
element was introduced in the HTML5 specification.
- Syntax
- Discussion
- Availability
tt
Obsolete. Displays text in a "teletype" style. Use CSS styling instead.
The text is displayed in a monospaced "teletype" style, but otherwise matches the style of the enclosing element. Styles should be more finely tuned using CSS instead of using HTML style elements. Semantic HTML alternatives to
tt
include:kdb
for keyboard input,var
for variables,code
for computer code, andsamp
for computer output.The
tt
element has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
u
Deprecated. Defines a block of underlined text. Use CSS styling instead.
The content is underlined. The
ins
element is more appropriate for this function. Styles should be more finely tuned using CSS instead of using HTML style elements. Additionally, underlined text should not be used as it might be confused with actual hyperlinks.The
u
element has been deprecated in the HTML 4.01 standard.
- Discussion
- Availability
ul
Specifies an unordered list.
<ul> content </ul>
The
ul
element specifies an unordered, bulleted list. Within the bounds of this block, list items should be defined using theli
element.
- Syntax
- Discussion
var
Specifies a variable.
<var> content </var>
The
var
element specifies a variable. The text enclosed within the element is italicized.
- Syntax
- Discussion
video
Embeds video into a webpage.
<video src="url"
poster="freezeframe.png"
autoplay="autoplay" <!-- Boolean attribute. Omit to prevent autoplay. -->
start="00:00:00.00"
loopstart="00:00:00.07" <!-- 7 seconds -->
loopend="00:00:00.19"
end="00:00:00.27"
playcount="4" <!-- play 4x -->
controls="true"
width="640"
height="480"
>
The
video
element might contain fallback content for browsers that do not support this element. Any content enclosed within thevideo
element is ignored by browsers that support thevideo
element (but it must be valid HTML).The
video
element supports inclusion ofsource
elements to provide multiple versions of a video clip encoded with different codecs, at different bit rates, and so on. Thesesource
elements must be the first elements inside thevideo
element before any fallback content. Seesource
for more information.
- Syntax
- Discussion
wbr
Specifies a block in which line breaks are permitted.
<wbr> content </wbr>
Within a
nobr
block (in which line breaks are enabled), any content specified bycontent
is permitted to use line breaks. The line breaks themselves must still be requested using thebr
element.
- Syntax
- Discussion
xmp
Obsolete. Represents a block of literal text. Use pre
and code
instead.
The
xmp
element preserves the formatting of the block of text, specifically line breaks, multiple spaces, and the greater-than and less-than symbols that accompany HTML elements. This block is also prefaced with anewline
element. In Safari, text enclosed in this element is also rendered in a monospace "teletype" font.The
xmp
element has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
Copyright © 2014 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2014-07-15