Supported HTML
Safari and WebKit implement a large subset of the HTML 5 Specification defined by the World Wide Web Consortium (W3C). This reference defines every symbol in the specification that Safari implements. If a tag 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 this tag, the text or image enclosed by the tag becomes a hyperlink, linked to the URL specified byURL. When thenameattribute is used, the tag becomes an anchor which can be linked to by a hyperlink.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
abbr
Specifies an abbreviated form of a string.
<abbr title ="fullstring"> abbrev </abbr>
In Safari, the string specified by
abbrevis displayed on screen while the content offullstringis revealed in tooltip form by holding the mouse over the abbreviated value. This tag is also useful for applications that read the underlying HTML code of a page, such as screen readers.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
acronym
Specifies the acronym form of a string.
<acronym title ="fullstring"> acro </acronym>
In Safari, the string specified by
acrois displayed on screen while the content offullstringis revealed in tooltip form by holding the mouse over the acronym itself. This tag is also useful for applications that read the underlying HTML code of a page, such as screen readers.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
address
Specifies a street address.
<address> streetaddress </address>
This tag specifies a street address. The address enclosed within the tags is italicized. Line breaks (such as ones between a street address and a city/state/zip) are not automatically inserted.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
applet
Embeds a Java applet within a page. Though deprecated, this is the preferred element for embedding Java applets in Safari.
<applet height="value" width="value" archive="URL">
<applet height="value" width="value" code="URL">
The applet is displayed at the location of the tag in the page, with a height specified by
heightand a width specified bywidth. The location of the applet is given by the URL specified byarchiveif the applet is stored in a Java archive or zip file, orcodeif the applet is in a standard java class file.Available in Safari 1.0 and later. This tag has been deprecated in the HTML 4.01 standard.
- Syntax
- Discussion
- Availability
area
Specifies a specific area within an image map.
<area shape ="shapetype" coords ="coords" href ="URL">
This tag defines discrete areas within an image map (defined by an enclosing
<map>tag). The area defined by this tag will act as a hyperlink, linked to the URL specified byURL, bounding shape specified byshapeand coordinates specified bycoords.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
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 may contain fallback content for browsers that do not support this element. Any content enclosed within theaudioelement is ignored by browsers that support the audio element (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 the audio element before any fallback content. See “source” for more information.Available in Safari 1.0 and later.
Available in iOS 3.0 and later.
- Syntax
- Discussion
- Availability
b
Displays text in a bold style.
<b> content </b>
The text specified by
contentis displayed in the bold style but otherwise will match the style of the enclosing element. Styles should be more finely tuned using CSS instead of using HTML style tags.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
base
Defines the base URL for all linked objects on a page.
<base href ="URL">
The URL specified by
hrefwill act 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 will not be affected by this tag. This tag must be placed in theheadsection of a page.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
basefont
Deprecated. Specifies the base font for a page.
<basefont color ="color" face ="face" size ="size">
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 in “ Supported Attributes .”Available in Safari 1.0 and later. This tag has been deprecated in the HTML 4.01 standard. You should use CSS styling to set this property for the enclosing elements unless you have a specific reason to use this tag.
- Syntax
- Discussion
- Availability
bdo
Displays text in a different direction.
<bdo dir ="dir"> content </bdo>
The text specified by
contentis displayed left-to-right ifdiris set to “ltr”; it is displayed right-to-left if it is set to “rtl.”Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
big
Displays text in a large size.
<big> content </big>
The text specified by
contentis displayed in a larger size but otherwise will match the style of the enclosing element. Styles should be more finely tuned using CSS instead of using HTML style tags.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- 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 will match the style of the enclosing element. Styles should be more finely tuned using CSS instead of using HTML style tags.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
body
Defines the entirety of the document body.
<body> content </body>
The content specified by
contentcomprises most of the content of the page. Though you can specify style attributes within this tag, this behavior has been deprecated in HTML 4.01 and should be replaced with CSS style attributes.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
br
Represents a single line break.
<br>
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
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 the “button” input type in that you can specify content within the button tags.Available in Safari 1.0 and later. Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
canvas
Specifies an advanced drawing region.
<canvas id="identifer" height="value" width="value">
This tag specifies the location of an advanced drawing region. The canvas tag supports the same attributes as the
<img>tag with the exception of thesrcattribute, which is ignored. 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 byheightandwidthrespectively.Read “Using the Canvas” for more information on the
canvastag.Available in Safari 1.3 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
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 it is enclosed.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
center
Deprecated. Defines a region of content to be centered.
<center> content </center>
The content specified by
contentis centered within its enclosing element.Available in Safari 1.0 and later. Available in iOS 1.0 and later. This tag has been deprecated in the HTML 4.01 standard. Styles should be more finely tuned using CSS instead of using HTML style tags.
- Syntax
- Discussion
- Availability
cite
Specifies a citation.
<cite> content </cite>
This tag specifies a citation. The text enclosed within the tags is italicized.
Available in Safari 1.0 and later. Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
code
Specifies text as computer code.
<code> content </code>
This tag specifies a block of code. The text enclosed within the tags will use a “teletype” monospaced character font.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
col
Specifies attributes of columns in a table.
<col properties >
This tag allows you specify attributes for a given table column, with those attributes specified by
properties. A series of<col>tags must be placed in order of the actual table columns. For example, to set center column alignment for a columns, you would use<col align="center">.These must be placed within a table or acolgroup.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
colgroup
Specifies attributes for multiple columns in a table.
<colgroup properties ></colgroup>
This tag allows you specify attributes for multiple table columns, with those attributes specified by
properties. For example, to set center column alignment for three different columns, you would use<colgroup span="3" align="center">. These must be placed within a table.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
dd
Specifies a definition for a term.
<dd> content </dd>
This tag specifies a definiton for a term within an HTML definition list. The text enclosed within the tags is indented under the term specified by the enclosing
<dt>block.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
del
Specifies a block of deleted text.
<del> content </del>
This tag specifies a block of deleted text, which is marked with a crossbar.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
dfn
Specifies a definition.
<dfn> content </dfn>
This tag specifies a definition of any sort.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
dir
Deprecated. Specifies a directory list.
<dir>
<li> content </li>
</dir>
This tag specifies a directory list, each element of which is specified by an
<li>tag..Available in Safari 1.0 and later. Available in iOS 1.0 and later. This tag has been deprecated in the HTML 4.01 standard. List styles should be more finely tuned using CSS instead of using HTML style tags, and the structure should be defined instead with the
<ul>and<ol>tags.
- Syntax
- Discussion
- Availability
div
Specifies a styleless section in a document.
<div> content </div>
This tag specifies a section in a document, as a block element. Multiple divs will stack vertically on the page. Use CSS styles to tune the style properties of this element.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
dl
Specifies a definition list.
<dl> content </dl>
This tag specifies a definition list. Within the bounds of this block, terms to be defined should be marked using the
<dt>tag, and their definitions should be marked using the<dd>tag.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
dt
Specifies a definition term.
<dt> content </dt>
This tag 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 the<dd>tag.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
em
Specifies emphasized text.
<em> content </em>
This tag specifies a block of emphasized text. Styles should be more finely tuned using CSS instead of using HTML style tags.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
embed
Deprecated. Embeds an object within a page.
<embed height ="value" width ="value" src/code="URL" > content </embed>
The object, if visible, is displayed at the location of the tag 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.Available in Safari 1.0 and later. Available in iOS 1.0 and later. This tag has been deprecated in the HTML 4.01 standard. You should use the
<object>tag to embed objects unless you have a specific reason to use this tag .
- Syntax
- Discussion
- Availability
fieldset
Specifies a set of fields.
<fieldset>
caption input
caption input
</fieldset>
This tag encloses a set of input fields, and will draw a box around them. The fields themselves are made with input tags specified by
inputand the name of the field is plaintext specified bycaption.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
font
Deprecated. Defines a font style for the content the tag encloses.
<font> content </font>
The content specified by
contentis altered based on a variety of properties, such asface,size, andcolor.Available in Safari 1.0 and later. Available in iOS 1.0 and later. This tag has been deprecated in the HTML 4.01 standard. Styles should be more finely tuned using CSS instead of using HTML style tags.
- Syntax
- Discussion
- Availability
form
Specifies an HTML form.
<form> formContent </form>
This tag 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 tag set. If using the form for some kind of submission, the form’s submit button should also be enclosed within this tag set.
Safari on iOS extends the form tag with two additional properties,
autocorrectandautocapitalize, described in “Supported Attributes.”Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
frame
Specifies an individual frame.
<frame src ="URL">
This tag specifies an individual frame within a frameset. The URL for the frame is specified by
src.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
frameset
Specifies a frameset.
<frameset>
This tag specifies the overall frameset for a number of frames (each specified with the
<frame>tag. The URL for the frame is specified bysrc. The size of each column should be specified by thecolsandrowsproperties.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
h1 - h2 - ... - h6
Specifies various headers.
<h#> content </h#>
This tag specifies a block of header text, with <h1> representing the largest font size and <h6> representing the smallest. Styles should be more finely tuned using CSS instead of using HTML style tags.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
head
Specifies metainformation about the HTML document.
<head> content </head>
This tag can contain a number of informational tags, such as
<title>for the page title or<style>for a CSS definition block.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
hr
Specifies a horizontal line.
<hr>
This tag specifies a horizontal line. Styles should be more finely tuned using CSS instead of using HTML style tags.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
html
Specifies the HTML document.
<html>
This tag specifies an HTML document, and should encompass all the content of the page.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
i
Displays text in an italic style.
<i> content </i>
The text specified by
contentis displayed in the italic style but otherwise will match the style of the enclosing element. Styles should be more finely tuned using CSS instead of using HTML style tags.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
iframe
Displays a URL in an inline frame.
<iframe src ="URL"></iframe>
The URL specified by
srcwill load into an inline frame placed wherever the iframe is entered.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
img (or image)
Displays an inline image.
<img src ="URL">
The image file specified by
srcis displayed inline in the enclosing element.imgis available in Safari 1.0 and later.imageis available in Safari 3.0 and later. Both are Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
input
Displays an input for an HTML form.
<input type ="type">
This tag specifies some kind of input mechanism in an HTML form. The type specified by
typecan be one of the following:button, for a basic button;checkboxfor a checkbox element;filefor a file upload interface;hiddenfor an invisible input type;passwordfor a shielded password field;radiofor a radio button element;resetfor a form-reset button;submitfor a form-submit button; ortextfor a standard text field.Safari on iOS extends the input tag with two additional properties,
autocorrectandautocapitalize, described in “Supported Attributes.”Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
ins
Specifies a block of inserted text.
<ins> content </ins>
This tag specifies a block of inserted text, which is marked with an underline.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
isindex
Deprecated. Specifies an index field.
<isindex prompt ="prompt">
This tag displays a prompt and a search field, which as a form will submit the value using a GET request. The default prompt in Safari is “This is a searchable index. Enter search keywords:”, but this can be overridden by specifying a string for the
promptattribute.Available in Safari 1.0 and later. Available in iOS 1.0 and later. This tag has been deprecated in the HTML 4.01 standard. You should use standard HTML input types to process queries instead of using this tag.
- Syntax
- Discussion
- Availability
kbd
Specifies text as keyboard text.
<kbd> content </kbd>
This tag specifies a block of keyboard text. The text enclosed within the tags will use a “teletype” monospaced character font.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
keygen
Provides public key generation for forms.
<keygen name="name" challenge="challenge_value">
This tag places a form element on the page which will generate a 512, 1024, or 2048-bit public key as its value. The challenge specified by
challengeand 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.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
label
Specifies a label for input controls.
<label for ="id"> content </label>
This tag specifies a label for the input control whose name is specified by
for. The text specified bycontentmakes up the body of the label.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
layer
Specifies individual layers on a webpage.
<layer>content</layer>
This tag specifies an independent layer of content on a webpage. This tag 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, this tag should be replaced with<object>or<div>.Available in Safari 1.0 and later.
Available with limited support in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
legend
Specifies the caption for a fieldset.
<legend> content </legend>
This tag specifies the label for a fieldset (specified by the
<fieldset>tag). The caption specified bycontentis merged with the box surrounding the fieldset.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
li
Specifies a list element.
<li> content </li>
Within a list block (specified by
<ul>for an unordered list, or<ol>for an ordered list), this tag specifies single list element, whose content is specified bycontent. List styles should be more finely tuned using CSS instead of using HTML style tags.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
link
Specifies a connection to an external file.
<link href ="URL">
This tag specifies an external file which is related to the HTML document it is enclosed in. For example, you should use this tag in the head of an HTML document to specify an external CSS stylesheet.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
listing
Deprecated. Equivalent to “pre.”
<listing>
This tag is supported for backwards compatibility only. You should not use it in new documents.
Available in Safari 3.0 and later. Deprecated in HTML 3.2, not available in HTML 4 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
map
Specifies a browser-processed image map.
<map name ="id" id ="id">
This tag encloses the
areaelements that define the regions of an image map. The identifier specified byidand bynameshould be used by an<img>element’susemapproperty.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
marquee
Specifies a horizontally scrolling block of content.
<marquee>content</marquee>
This tag specifies a block of content that scrolls horizontally (by default, across 100% of the enclosing element). The content specified by
contentcan be arbitrary—it is not limited to text alone. You can specify a custom width using CSS styling techniques.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
menu
Deprecated. Specifies a menu list.
<menu> content </menu>
This tag specifies a definition list. Within the bounds of this block, terms to be defined should be marked using the
<dt>tag, and their definitions should be marked using the<dd>tag,Available in Safari 1.0 and later. Available in iOS 1.0 and later. This tag has been deprecated in the HTML 4.01 standard. List styles should be more finely tuned using CSS instead of using HTML style tags, and the structure should be defined instead with the
<ul>and<ol>tags.
- Syntax
- Discussion
- Availability
meta
Specifies metainformation about an HTML page.
<meta name ="title" content ="content">
This tag specifies a list of metainformation about a page, such as keywords for a search engine to index. The title specified by
namedefines what metainformation you are displaying. The text specified bycontentis the actual metainformation.For information on Apple-specific meta tag keys, see “Supported Meta Tags.”
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
nobr
Specifies a region of content with no embedded line breaks.
<nobr>content</nobr>
The content specified by
contentis displayed with no line breaks. It is intended for blocks that must remain on one line.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
noembed
Specifies content to display to browsers that do not support embedded objects.
<noembed>content</noembed>
This tag specifies a block of content that will display in browsers that do not support embedded objects.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
noframes
Specifies content that displays in browsers that do not support frames.
<noframes> content </noframes>
This tag specifies a block of content that displays in browsers that do not support frames or have them deactivated.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
nolayer
Specifies content that displays in browsers that do not support layers.
<nolayer>content</nolayer>
This tag specifies a block of content that displays in browsers that do not support layers.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
noscript
Specifies content that displays in browsers that do not run scripts.
<noscript> content </noscript>
This tag specifies a block of content that displays to browsers who do not support execution of scripts or have them deactivated.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
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 tag 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.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
ol
Specifies an ordered list.
<ol> content </ol>
This tag specifies an ordered, numbered list. Within the bounds of this block, list items should be defined using the
<li>tag.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
optgroup
Specifies a group of options.
<optgroup label ="label"> options </optgroup>
Within a
selectinput type, this tag specifies a subgroup of options. Within the bounds of this block, individual options are specified using the<option>tag. The title of the subgroup is specified bylabel, and in Safari is displayed as bold grey text, with its associated options indented under it.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
option
Specifies a list option.
<option value ="value"> title </option>
Within a
selectinput type, this tag specifies a single selectable option. The form value of the option is specified byvalue, and its visible name is specified bytitle. These can be placed directly within aselectinput type or within anoptgroupwithin it.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
p
Displays a paragraph.
<p> content </p>
This tag indicates a paragraph in the document.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
param
Represents a parameter for an object declaration.
<param name ="name" value ="value">
This tag represents a specific parameter for an embedded
objectelement. You can place any number of these , but they must be enclosed within the<object>block. The parameter’s name/key is specified bynameand its value is specified byvalue.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
plaintext
Represents a block of preformatted text.
<plaintext>content</plaintext>
This tag preserves the formatting of the block of text specified by
content, 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. This also stops the interpretation of HTML tags, so they are rendered onscreen. This tag is not well-supported and may cause unintended behavior in Safari; consider using the<pre>tag instead.Available in Safari 1.0 and later.
Available with limited support in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
pre
Represents a block of preformatted text.
<pre> content </pre>
This tag preserves the formatting of the block of text specified by
content, 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.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
q
Displays an inline quotation.
<q> content </q>
The text specified by
contentis displayed in quotes but otherwise will match the style of the enclosing element. Styles should be more finely tuned using CSS instead of using HTML style tags.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
s
Deprecated. Defines a block of text in strikethrough style.
<s> content </s>
The content specified by
contentis rendered with a crossbar.Available in Safari 1.0 and later. Available in iOS 1.0 and later. This tag has been deprecated in the HTML 4.01 standard. The
<del>tag is more appropriate for this function. Styles should be more finely tuned using CSS instead of using HTML style tags.
- Syntax
- Discussion
- Availability
samp
Specifies text as sample code.
<samp> content </samp>
This tag specifies a block of code. The text enclosed within the tags will use a “teletype” monospaced character font.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
script
Embeds and executes script code.
<script type ="mimetype"> code </script>
This tag specifies a block of script code, such as JavaScript. The code specified by
codeis invisible onscreen, but is visible in the page source. Code embedded within script tags (unless defined inside functions) is executed immediately on page load. The MIME type of the script should be specified bytype.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
select
Specifies a selection input type.
<select> options </select>
This tag specifies a selection menu. This block must contain a set of
optionelements oroptgroupelements containing options. In Safari, if thesizeproperty is explicitly set for this tag, the input box will resemble a Mac OS X combo box, otherwise it will resemble a pop-up menu.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
small
Displays text in a small size.
<small> content </small>
The text specified by
contentis displayed in a smaller size but otherwise will match the style of the enclosing element. Styles should be more finely tuned using CSS instead of using HTML style tags.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
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 tag goes here. -->
</video>
Web developers should take care to specify type and codec information appropriately. Browsers use this information to choose the media that is most appropriate according to available codecs, screen resolution, and so on.
Available in Safari 3.1 and later.
- Syntax
- Discussion
- Availability
span
Specifies an inline styleless section in a document.
<span> content </span>
This tag specifies a section in a document. Multiple consecutive spans are placed horizontal on the page by default. Use CSS styles to tune the style properties of this element.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
strike
Deprecated. Defines a block of text in strikethrough style.
<strike> content </strike>
The content specified by
contentis rendered with a crossbar.Available in Safari 1.0 and later. Available in iOS 1.0 and later. This tag has been deprecated in the HTML 4.01 standard. The
<del>tag is more appropriate for this function. Styles should be more finely tuned using CSS instead of using HTML style tags.
- Syntax
- Discussion
- Availability
strong
Specifies text as “strong” emphasized text.
<strong> content </strong>
This tag specifies a block of emphasized text. Styles should be more finely tuned using CSS instead of using HTML style tags.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
style
Defines an inline stylesheet.
<style type ="mimetype"> css_declarations </style>
This tag specifies a CSS stylesheet within the page. All CSS declarations should be placed within this block. This tag should be placed in the
headsection of a page. If you are linking to an external stylesheet, use thelinkelement instead.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
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 tags.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- 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 tags.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
table
Defines a data table.
<table> content </table>
This tag defines a table structure for a page. The HTML specified by
contentshould contain the other structural elements such as table rows (<tr>) and table cells (<td>).Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
tbody
Defines a table’s body.
<tbody> content </tbody>
This tag defines a the body for a table. It is only a structural definition and by default does not render anything unique, so the HTML specified by
contentshould contain the other structural elements such as table rows (<tr>) and table cells (<td>).Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
td
Defines a table cell.
<td> content </td>
This tag defines a cell within a table. Cells are usually enclosed by table row (
<tr>) definitions. Consecutive table cells are placed horizontally onscreen.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
textarea
Specifies a text area input type.
<textarea rows ="value" cols ="value"> content </select>
This tag specifies a scrollable, multi-line text input block. You can specify its size onscreen by specifying values for
rowsandcols.Safari on iOS extends the textarea tag with two additional properties,
autocorrectandautocapitalize, described in “Supported Attributes.”Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
tfoot
Defines a table’s footer.
<tfoot> content </tfoot>
This tag defines a footer for a table. It is only a structural definition and by default does not render anything unique, so the HTML specified by
contentshould contain the other structural elements such as table rows (<tr>) and table cells (<td>).Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
th
Defines header text for a table column.
<th> content </th>
Table headers should be placed in their own table row, usually the first 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.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
thead
Defines a table’s header.
<thead> content </thead>
This tag defines a header for a table. It is only a structural definition and by default does not render anything unique, so the HTML specified by
contentshould contain the other structural elements such as table rows (<tr>) and table cells (<td>).Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
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. This tag must be placed in theheadsection of a page.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
tr
Defines a table row.
<tr> content </tr>
This tag defines a row within a table. Table cells are usually enclosed by these rows. Consecutive table rows are placed vertically onscreen.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
tt
Displays text in a “teletype” style.
<tt> content </tt>
The text specified by
contentis 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 tags.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
u
Deprecated. Defines a block of underlined text.
<u> content </u>
The content specified by
contentis underlined.Available in Safari 1.0 and later. Available in iOS 1.0 and later. This tag has been deprecated in the HTML 4.01 standard. The
<ins>tag is more appropriate for this function. Styles should be more finely tuned using CSS instead of using HTML style tags. Additionally, underlined text should not be used as it may be confused with actual hyperlinks.
- Syntax
- Discussion
- Availability
ul
Specifies an unordered list.
<ul> content </ul>
This tag specifies an unordered, bulletted list. Within the bounds of this block, list items should be defined using the
<li>tag.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
var
Specifies a variable.
<var> content </var>
This tag specifies a variable. The text enclosed within the tags is italicized.
Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
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 may contain fallback content for browsers that do not support this element. Any content enclosed within thevideoelement is ignored by browsers that support the video element (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. See “source” for more information.Available in Safari 3.1 and later.
Available in iOS 3.0 and later.
- Syntax
- Discussion
- Availability
wbr
Specifies a block in which line breaks are permitted.
<wbr>content</wbr>
Within a
<nobr>block (in which line breaks are disabled), any content specified bycontentis permitted to use line breaks. The line breaks themselves must still be requested using the<br>tag.Available in Safari 1.0 and later.
Available in iOS 1.0 and later.
- Syntax
- Discussion
- Availability
xmp
Represents a block of literal text.
<xmp>content</xmp>
This tag preserves the formatting of the block of text specified by
content, specifically line breaks, multiple spaces, and the greater-than and less-than symbols that accompany HTML tags. This block is also prefaced with a newline. In Safari, text enclosed in this element is also rendered in a monospace “teletype” font. This tag is not well-supported and may cause unintended behavior in Safari; consider using the <pre> tag instead.Available in Safari 1.0 and later.
Available with limited support on iOS 1.0 and later.
- Syntax
- Discussion
- Availability
© 2011 Apple Inc. All Rights Reserved. (Last updated: 2011-07-12)