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
hrefattribute is used with theaelement, the text or image enclosed by the element becomes a hyperlink, linked to the URL specified byURL. When thenameattribute 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
abbris displayed onscreen while the content offullstringis 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. Useabbrinstead ofacronym.
- Syntax
- Discussion
acronym
Obsolete. Specifies the acronym form of a string. Use abbr instead.
The
acronymelement behavior was identical to the behavior of theabbrelement.The
acronymelement has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
address
Specifies a street address.
<address> streetaddress </address>
The
addresselement 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
archiveparameter.The
appletelement 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
areaelement defines discrete areas within an image map (defined by an enclosingmapelement). 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
articleinstead ofdivto contain a forum post, newspaper article, or blog entry. An article may be nested inside anotherarticleelement.
- Discussion
aside
Specifies a section of a page that is tangentially related to the surrounding content.
The
asideelement 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
audioelement might contain fallback content for browsers that do not support this element. Any content enclosed within theaudioelement is ignored by browsers that support theaudioelement (but it must be valid HTML).The
audioelement supports inclusion ofsourceelements to provide multiple versions of an audio clip encoded with different codecs, at different bit rates, and so on. Thesesourceelements must be the first elements inside theaudioelement before any fallback content. Seesourcefor more information.
- Syntax
- Discussion
b
Displays text in a bold style.
<b> content </b>
The text specified by
contentis displayed in the bold style, but otherwise matches the style of the enclosing element. Consider usingemto add emphasis andstrongto 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
hrefacts 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. Thebaseelement must be placed in theheadsection 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
basefontelement 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
bdiwhen the directional display of the text is unknown. Unlikebdoelements,bdielements 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
contentis displayed left to right ifdiris 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
contentis 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
bigelement 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
contentis 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
contentcomprises 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
contentis displayed within the frame of the button. This differs from thebuttoninput type in that you can specify content within thebuttonelement.
- Syntax
- Discussion
canvas
Specifies an advanced drawing region.
<canvas id="identifer" height="value" width="value">
The
canvaselement specifies the location of an advanced drawing region. Thecanvaselement supports the same attributes as theimgelement with the exception of thesrcattribute, which is ignored for thecanvaselement. You can specify any of the other attributes you would normally specify for an image. The identifier specified byidis required for Dashboard widgets, as are the height and width specified byheightandwidth, 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
contentis 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
centerelement is centered within its enclosing element. Styles should be more finely tuned using CSS instead of using HTML style elements.The
centerelement has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
cite
Specifies a citation.
<cite> content </cite>
The
citeelement specifies a citation. The text enclosed within the element is italicized.
- Syntax
- Discussion
code
Specifies text as computer code.
<code> content </code>
The
codeelement 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
colelement allows you specify attributes for a given table column, with those attributes specified byproperties. A series ofcolelements 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
colgroupelement 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
commandelement 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
ddelement 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 enclosingdtblock.
- Syntax
- Discussion
del
Specifies a block of deleted text.
<del> content </del>
The
delelement 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
summaryelement should be included in adetailselement.The
detailselement was introduced in the HTML5 specification.
- Syntax
- Discussion
- Availability
dfn
Specifies a definition.
<dfn> content </dfn>
The
dfnelement specifies a definition of any sort.
- Syntax
- Discussion
dir
Obsolete. Specifies a directory list. Use CSS styling or list elements as appropriate.
The
direlement specifies a directory list, each element of which is specified by anlielement. List styles should be more finely tuned using CSS instead of using HTML style elements, and the structure should be defined instead with theulandolelements.The
direlement has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
div
Specifies a styleless section in a document.
<div> content </div>
The
divelement 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
dlelement specifies a definition list. Within the bounds of this block, terms to be defined should be marked using thedtelement, and their definitions should be marked using theddelement.
- Syntax
- Discussion
dt
Specifies a definition term.
<dt> content </dt>
The
dtelement 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 theddelement.
- Syntax
- Discussion
em
Specifies emphasized text.
<em> content </em>
The
emelement 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
heightand a width specified bywidth. The location of the object is given by the URL specified bysrc, orcodeif the applet is in a standard Java class file.The
embedelement has been deprecated in the HTML 4.01 standard.
- Discussion
- Availability
fieldset
Specifies a set of fields.
<fieldset>
caption input
caption input
</fieldset>
The
fieldsetelement encloses a set of input fields, and draws a box around them. The fields themselves are made with input elements specified byinputand 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
contentis 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
fontelement has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
footer
Specifies content for the section footer.
The
footerelement was introduced in the HTML5 specification.
- Availability
form
Specifies an HTML form.
The
formelement 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
frameelement specifies a directory list, each element of which is specified by anlielement. List styles should be more finely tuned using CSS instead of using HTML style elements, and the structure should be defined instead with theulandolelements.The
frameelement has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
frameset
Obsolete. Specifies a frameset. Use iframe instead.
The
framesetelement specifies the overall frameset for a number of frames (each specified with theframeelement. The URL for the frame is specified bysrc. The size of each column should be specified by thecolsandrowsproperties.The
framesetelement 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
h1representing the largest font size andh6representing 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
headelement can contain a number of informational elements, such astitlefor the page title orstylefor 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
hrelement 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
htmlelement 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
contentis displayed in the italic style, but otherwise matches the style of the enclosing element. Consider using theem,strong,mark,cite, anddfnelements 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
srcloads into an inline frame placed wherever theiframeelement 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
srcorsrcsetis displayed inline in the enclosing element. Descriptors insrcsetrefer to maximum pixel width (w), height (h), or density (x).
- Syntax
- Discussion
input
Displays an input for an HTML form.
<input type="type">
The
inputelement 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
inselement specifies a block of inserted text, which is marked with an underline.
- Syntax
- Discussion
kbd
Specifies text as keyboard text.
<kbd> content </kbd>
The
kbdelement 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
keygenelement places a form element on the page, which generates a 512, 1024, or 2048-bit public key as its value. The challenge specified bychallengeand 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
labelelement specifies a label for the input control whose name is specified byfor. The text specified bycontentmakes 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
layerelement specifies an independent layer of content on a webpage.
- Syntax
- Discussion
legend
Specifies the caption for a fieldset.
<legend> content </legend>
The
legendelement specifies the label for a fieldset (specified by thefieldsetelement). The caption specified bycontentis merged with the box surrounding the fieldset.
- Syntax
- Discussion
li
Specifies a list element.
<li> content </li>
Within a list block (specified by
ulfor an unordered list, orolfor an ordered list),lispecifies 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
linkelement specifies an external file that is related to the HTML document it is enclosed in. For example, you should uselinkin 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
listingelement has been declared obsolete in the HTML5 specification.
- Availability
main
Specifies the main content of the body element.
Only one
mainelement is included in abodyelement. 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
mapelement encloses theareaelements that define the regions of an image map. The identifier specified byidand the name specified bynameshould be used by animgelement’susemapproperty.
- Syntax
- Discussion
mark
Specifies a highlighted element.
The
markelement can be used to highlight search results.
- Discussion
marquee
Obsolete. Specifies a horizontally scrolling block of content. Use JavaScript instead.
The
marqueeelement specifies a block of content that scrolls horizontally.The
marqueeelement has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
menu
Specifies a menu list.
The
menuelement specifies a menu list. Within the bounds of this block, terms to be defined should be marked using thedtelement, and their definitions should be marked using theddelement. Themenuelement 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
metaelement specifies a list of metainformation about a page, such as keywords for a search engine to index. The title specified bynamedefines what metainformation you are displaying. The text specified bycontentis 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
progressto illustrate task completion. Usemeterto show a value in a range.The
meterelement 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
navelements in one document. Thenavelement 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
nobrelement for text blocks that must remain on one line.The
nobrelement 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
noembedelement specifies a block of content that displays in browsers that do not support embedded objects.The
noembedelement 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
noframeselement specifies a block of content that displays in browsers that do not support frames or have them deactivated. Because frames are no longer supported thenoframeelement is not needed.The
noframeselement 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
nolayerelement 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
noscriptelement 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
heightand a width specified bywidth.The location of the object is given by the URL specified by
archivefor a Java archive,datafor some arbitrary embedded data (an image, for example), orcodebasefor object code of any other type.
- Syntax
- Discussion
ol
Specifies an ordered list.
<ol> content </ol>
The
olelement specifies an ordered, numbered list. Within the bounds of this block, list items should be defined using thelielement.
- Syntax
- Discussion
optgroup
Specifies a group of options.
<optgroup label="label"> options </optgroup>
Within a
selectinput type, theoptgroupelement specifies a subgroup of options. Within the bounds of this block, individual options are specified using theoptionelement. 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
selectinput type, theoptionelement 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 aselectinput type or within anoptgroupwithin aselectelement.
- 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
outputelement was introduced in the HTML5 specification.
- Syntax
- Discussion
- Availability
p
Displays a paragraph.
<p> content </p>
The
pelement indicates a paragraph in the document.
- Syntax
- Discussion
param
Represents a parameter for an object declaration.
<param name="name" value="value">
The
paramelement represents a specific parameter for an embeddedobjectelement. You can place any number of these, but they must be enclosed within theobjectblock. The parameter’s name/key is specified bynameand 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
plaintextelement has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
pre
Represents a block of preformatted text.
<pre> content </pre>
The
preelement 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
progressto illustrate task completion. Usemeterto show a value in a range.The
progresselement was introduced in the HTML5 specification.
- Syntax
- Discussion
- Availability
q
Displays an inline quotation.
<q> content </q>
The text specified by
contentis 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
rpelement 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
rubyelement 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
rtelement 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
selement is rendered with a horizontal line through the center. Thedelelement 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
selement has been deprecated in the HTML 4.01 standard.
- Discussion
- Availability
samp
Specifies text as sample code.
<samp> content </samp>
The
sampelement 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
scriptelement specifies a block of script code, such as JavaScript. The code specified bycodeis invisible onscreen, but is visible in the page source. Code embedded withinscriptelements (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
sectionshould be related. If content is unrelated use adivelement for grouping.The
sectionelement was introduced in the HTML5 specification.
- Syntax
- Discussion
- Availability
select
Specifies a selection input type.
<select> options </select>
The
selectelement specifies a selection menu. This block must contain a set ofoptionelements oroptgroupelements containing options. In Safari, if thesizeproperty 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
contentis 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
spanelement 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
contentis rendered with a horizontal line through the center. Thedelelement is more appropriate for this function. Styles should be more finely tuned using CSS instead of using HTML style elements.The
strikeelement has been declared obsolete in the HTML5 specification.
- Discussion
- Availability
strong
Specifies important text.
<strong> content </strong>
The
strongelement 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
styleelement specifies a CSS stylesheet within the page. All CSS declarations should be placed within this block. This element should be placed in theheadsection of a page. If you are linking to an external stylesheet, use thelinkelement instead.
- Syntax
- Discussion
sub
Specifies text as subscript.
<sub> content </sub>
The text specified by
contentis 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
detailselementsummaryis absent the heading "details" is used by default.The
summaryelement was introduced in the HTML5 specification.
- Syntax
- Discussion
- Availability
sup
Specifies text as superscript.
<sup> content </sup>
The text specified by
contentis 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
tableelement defines a table structure for a page. The HTML specified bycontentshould 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
tbodyelement 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 bycontentshould 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
tdelement 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
textareaelement specifies a scrollable, multiline text input block. You can specify its size onscreen by specifying values forrowsandcols.Safari on iOS extends the
textareaelement with two additional properties,autocorrectandautocapitalize, described inSupported HTML.
- Syntax
- Discussion
tfoot
Defines a table’s footer.
<tfoot> content </tfoot>
The
tfootelement 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 bycontentshould contain the other structural elements such as table rows (tr) and table cells (td).The
meterelement 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
contentis displayed in a bold face.
- Syntax
- Discussion
thead
Defines a table’s header.
<thead> content </thead>
The
theadelement 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 bycontentshould 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
contentis displayed at the top of a browser window, but remains invisible in embedded WebKit web views unless requested programatically. Thetitleelement must be placed in theheadsection of a page.
- Syntax
- Discussion
tr
Defines a table row.
<tr> content </tr>
The
trelement 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,chaptersormetadatathrough thekindattribute. See Safari HTML5 Audio and Video Guide for more information.The
trackelement 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
ttinclude:kdbfor keyboard input,varfor variables,codefor computer code, andsampfor computer output.The
ttelement 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
inselement 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
uelement has been deprecated in the HTML 4.01 standard.
- Discussion
- Availability
ul
Specifies an unordered list.
<ul> content </ul>
The
ulelement specifies an unordered, bulleted list. Within the bounds of this block, list items should be defined using thelielement.
- Syntax
- Discussion
var
Specifies a variable.
<var> content </var>
The
varelement 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
videoelement might contain fallback content for browsers that do not support this element. Any content enclosed within thevideoelement is ignored by browsers that support thevideoelement (but it must be valid HTML).The
videoelement supports inclusion ofsourceelements to provide multiple versions of a video clip encoded with different codecs, at different bit rates, and so on. Thesesourceelements must be the first elements inside thevideoelement before any fallback content. Seesourcefor more information.
- Syntax
- Discussion
wbr
Specifies a block in which line breaks are permitted.
<wbr> content </wbr>
Within a
nobrblock (in which line breaks are enabled), any content specified bycontentis permitted to use line breaks. The line breaks themselves must still be requested using thebrelement.
- Syntax
- Discussion
xmp
Obsolete. Represents a block of literal text. Use pre and code instead.
The
xmpelement 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 anewlineelement. In Safari, text enclosed in this element is also rendered in a monospace "teletype" font.The
xmpelement 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