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.

Syntax
<a href="URL"> ... </a>
Discussion

When the href attribute is used with this tag, the text or image enclosed by the tag becomes a hyperlink, linked to the URL specified by URL. When the name attribute is used, the tag becomes an anchor which can be linked to by a hyperlink.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

abbr

Specifies an abbreviated form of a string.

Syntax
<abbr title ="fullstring"> abbrev </abbr>
Discussion

In Safari, the string specified by abbrev is displayed on screen while the content of fullstring is 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.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

acronym

Specifies the acronym form of a string.

Syntax
<acronym title ="fullstring"> acro </acronym>
Discussion

In Safari, the string specified by acro is displayed on screen while the content of fullstring is 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.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

address

Specifies a street address.

Syntax
<address> streetaddress </address>
Discussion

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.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

applet

Embeds a Java applet within a page. Though deprecated, this is the preferred element for embedding Java applets in Safari.

Syntax
<applet height="value" width="value" archive="URL">
<applet height="value" width="value" code="URL">
Discussion

The applet is displayed at the location of the tag in the page, with a height specified by height and a width specified by width. The location of the applet is given by the URL specified by archive if the applet is stored in a Java archive or zip file, or code if the applet is in a standard java class file.

Availability

Available in Safari 1.0 and later. This tag has been deprecated in the HTML 4.01 standard.

area

Specifies a specific area within an image map.

Syntax
<area shape ="shapetype" coords ="coords" href ="URL">
Discussion

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 by URL, bounding shape specified by shape and coordinates specified by coords.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

audio

Embeds audio into a webpage.

Syntax
<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" >
Discussion

The audio element may contain fallback content for browsers that do not support this element. Any content enclosed within the audio element is ignored by browsers that support the audio element (but it must be valid HTML).

The audio element supports inclusion of source elements to provide multiple versions of an audio clip encoded with different codecs, at different bit rates, and so on. These source elements must be the first elements inside the audio element before any fallback content. See “source” for more information.

Availability

Available in Safari 1.0 and later.

Available in iOS 3.0 and later.

b

Displays text in a bold style.

Syntax
<b> content </b>
Discussion

The text specified by content is 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.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

base

Defines the base URL for all linked objects on a page.

Syntax
<base href ="URL">
Discussion

The URL specified by href will 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 the head section of a page.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

basefont

Deprecated. Specifies the base font for a page.

Syntax
<basefont color ="color" face ="face" size ="size">
Discussion

The font is used as the default font for the page unless otherwise specified. The font is specified by face, its size is specified by size, and its color is specified by color. These attributes and their various options are defined in “ Supported Attributes .”

Availability

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.

bdo

Displays text in a different direction.

Syntax
<bdo dir ="dir"> content </bdo>
Discussion

The text specified by content is displayed left-to-right if dir is set to “ltr”; it is displayed right-to-left if it is set to “rtl.”

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

big

Displays text in a large size.

Syntax
<big> content </big>
Discussion

The text specified by content is 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.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

blockquote

Displays text in an indented quotation style.

Syntax
<blockquote> content </blockquote>
Discussion

The text specified by content is 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.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

body

Defines the entirety of the document body.

Syntax
<body> content </body>
Discussion

The content specified by content comprises 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.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

br

Represents a single line break.

Syntax
<br>
Discussion

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

button

Defines an interactive button on a page.

Syntax
<button> content </button>
Discussion

The text specified by content is displayed within the frame of the button. This differs from the “button” input type in that you can specify content within the button tags.

Availability

Available in Safari 1.0 and later. Available in iOS 1.0 and later.

canvas

Specifies an advanced drawing region.

Syntax
<canvas id="identifer" height="value" width="value">
Discussion

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 the src attribute, which is ignored. You can specify any of the other attributes you would normally specify for an image. The identifier specified by id is required for Dashboard widgets, as are the height and width specified by height and width respectively.

Read “Using the Canvas” for more information on the canvas tag.

Availability

Available in Safari 1.3 and later.

Available in iOS 1.0 and later.

caption

Defines a caption for an HTML table.

Syntax
<caption> content </caption>
Discussion

The text specified by content is displayed as a caption for the table in which it is enclosed.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

center

Deprecated. Defines a region of content to be centered.

Syntax
<center> content </center>
Discussion

The content specified by content is centered within its enclosing element.

Availability

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.

cite

Specifies a citation.

Syntax
<cite> content </cite>
Discussion

This tag specifies a citation. The text enclosed within the tags is italicized.

Availability

Available in Safari 1.0 and later. Available in iOS 1.0 and later.

code

Specifies text as computer code.

Syntax
<code> content </code>
Discussion

This tag specifies a block of code. The text enclosed within the tags will use a “teletype” monospaced character font.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

col

Specifies attributes of columns in a table.

Syntax
<col properties >
Discussion

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 a colgroup.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

colgroup

Specifies attributes for multiple columns in a table.

Syntax
<colgroup properties ></colgroup>
Discussion

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.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

dd

Specifies a definition for a term.

Syntax
<dd> content </dd>
Discussion

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.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

del

Specifies a block of deleted text.

Syntax
<del> content </del>
Discussion

This tag specifies a block of deleted text, which is marked with a crossbar.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

dfn

Specifies a definition.

Syntax
<dfn> content </dfn>
Discussion

This tag specifies a definition of any sort.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

dir

Deprecated. Specifies a directory list.

Syntax
<dir>
<li> content </li>
</dir>
Discussion

This tag specifies a directory list, each element of which is specified by an <li> tag..

Availability

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.

div

Specifies a styleless section in a document.

Syntax
<div> content </div>
Discussion

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.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

dl

Specifies a definition list.

Syntax
<dl> content </dl>
Discussion

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.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

dt

Specifies a definition term.

Syntax
<dt> content </dt>
Discussion

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.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

em

Specifies emphasized text.

Syntax
<em> content </em>
Discussion

This tag specifies a block of emphasized text. Styles should be more finely tuned using CSS instead of using HTML style tags.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

embed

Deprecated. Embeds an object within a page.

Syntax
 <embed height ="value" width ="value" src/code="URL" > content </embed>
Discussion

The object, if visible, is displayed at the location of the tag in the page, with a height specified by height and a width specified by width. The location of the object is given by the URL specified by src, or code if the applet is in a standard java class file.

Availability

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 .

fieldset

Specifies a set of fields.

Syntax
<fieldset>
    caption input
    caption input
</fieldset>
Discussion

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 input and the name of the field is plaintext specified by caption.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

font

Deprecated. Defines a font style for the content the tag encloses.

Syntax
<font> content </font>
Discussion

The content specified by content is altered based on a variety of properties, such as face, size, and color.

Availability

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.

form

Specifies an HTML form.

Syntax
<form> formContent </form>
Discussion

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, autocorrect and autocapitalize, described in “Supported Attributes.”

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

frame

Specifies an individual frame.

Syntax
<frame src ="URL">
Discussion

This tag specifies an individual frame within a frameset. The URL for the frame is specified by src.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

frameset

Specifies a frameset.

Syntax
<frameset>
Discussion

This tag specifies the overall frameset for a number of frames (each specified with the <frame> tag. The URL for the frame is specified by src. The size of each column should be specified by the cols and rows properties.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

h1 - h2 - ... - h6

Specifies various headers.

Syntax
<h#> content </h#>
Discussion

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.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

head

Specifies metainformation about the HTML document.

Syntax
<head> content </head>
Discussion

This tag can contain a number of informational tags, such as <title> for the page title or <style> for a CSS definition block.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

hr

Specifies a horizontal line.

Syntax
<hr>
Discussion

This tag specifies a horizontal line. Styles should be more finely tuned using CSS instead of using HTML style tags.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

html

Specifies the HTML document.

Syntax
<html>
Discussion

This tag specifies an HTML document, and should encompass all the content of the page.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

i

Displays text in an italic style.

Syntax
<i> content </i>
Discussion

The text specified by content is 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.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

iframe

Displays a URL in an inline frame.

Syntax
<iframe src ="URL"></iframe>
Discussion

The URL specified by src will load into an inline frame placed wherever the iframe is entered.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

img (or image)

Displays an inline image.

Syntax
<img src ="URL">
Discussion

The image file specified by src is displayed inline in the enclosing element.

Availability

img is available in Safari 1.0 and later. image is available in Safari 3.0 and later. Both are Available in iOS 1.0 and later.

input

Displays an input for an HTML form.

Syntax
<input type ="type">
Discussion

This tag specifies some kind of input mechanism in an HTML form. The type specified by type can be one of the following: button, for a basic button; checkbox for a checkbox element; file for a file upload interface; hidden for an invisible input type; password for a shielded password field; radio for a radio button element; reset for a form-reset button; submit for a form-submit button; or text for a standard text field.

Safari on iOS extends the input tag with two additional properties, autocorrect and autocapitalize, described in “Supported Attributes.”

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

ins

Specifies a block of inserted text.

Syntax
<ins> content </ins>
Discussion

This tag specifies a block of inserted text, which is marked with an underline.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

isindex

Deprecated. Specifies an index field.

Syntax
 <isindex prompt ="prompt">
Discussion

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 prompt attribute.

Availability

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.

kbd

Specifies text as keyboard text.

Syntax
<kbd> content </kbd>
Discussion

This tag specifies a block of keyboard text. The text enclosed within the tags will use a “teletype” monospaced character font.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

keygen

Provides public key generation for forms.

Syntax
<keygen name="name" challenge="challenge_value">
Discussion

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 challenge 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.

Availability

Available in Safari 1.0 and later.

label

Specifies a label for input controls.

Syntax
<label for ="id"> content </label>
Discussion

This tag specifies a label for the input control whose name is specified by for. The text specified by content makes up the body of the label.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

layer

Specifies individual layers on a webpage.

Syntax
<layer>content</layer>
Discussion

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>.

Availability

Available in Safari 1.0 and later.

Available with limited support in iOS 1.0 and later.

legend

Specifies the caption for a fieldset.

Syntax
<legend> content </legend>
Discussion

This tag specifies the label for a fieldset (specified by the <fieldset> tag). The caption specified by content is merged with the box surrounding the fieldset.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

li

Specifies a list element.

Syntax
<li> content </li>
Discussion

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 by content. List styles should be more finely tuned using CSS instead of using HTML style tags.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

link

Specifies a connection to an external file.

Syntax
<link href ="URL">
Discussion

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.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

listing

Deprecated. Equivalent to “pre.”

Syntax
<listing>
Discussion

This tag is supported for backwards compatibility only. You should not use it in new documents.

Availability

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.

map

Specifies a browser-processed image map.

Syntax
<map name ="id" id ="id">
Discussion

This tag encloses the area elements that define the regions of an image map. The identifier specified by id and by name should be used by an <img> element’s usemap property.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

marquee

Specifies a horizontally scrolling block of content.

Syntax
<marquee>content</marquee>
Discussion

This tag specifies a block of content that scrolls horizontally (by default, across 100% of the enclosing element). The content specified by content can be arbitrary—it is not limited to text alone. You can specify a custom width using CSS styling techniques.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

menu

Deprecated. Specifies a menu list.

Syntax
<menu> content </menu>
Discussion

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,

Availability

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.

meta

Specifies metainformation about an HTML page.

Syntax
<meta name ="title" content ="content">
Discussion

This tag specifies a list of metainformation about a page, such as keywords for a search engine to index. The title specified by name defines what metainformation you are displaying. The text specified by content is the actual metainformation.

For information on Apple-specific meta tag keys, see “Supported Meta Tags.”

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

nobr

Specifies a region of content with no embedded line breaks.

Syntax
<nobr>content</nobr>
Discussion

The content specified by content is displayed with no line breaks. It is intended for blocks that must remain on one line.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

noembed

Specifies content to display to browsers that do not support embedded objects.

Syntax
<noembed>content</noembed>
Discussion

This tag specifies a block of content that will display in browsers that do not support embedded objects.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

noframes

Specifies content that displays in browsers that do not support frames.

Syntax
<noframes> content </noframes>
Discussion

This tag specifies a block of content that displays in browsers that do not support frames or have them deactivated.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

nolayer

Specifies content that displays in browsers that do not support layers.

Syntax
<nolayer>content</nolayer>
Discussion

This tag specifies a block of content that displays in browsers that do not support layers.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

noscript

Specifies content that displays in browsers that do not run scripts.

Syntax
<noscript> content </noscript>
Discussion

This tag specifies a block of content that displays to browsers who do not support execution of scripts or have them deactivated.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

object

Embeds an object within a page.

Syntax
<object height="value" width="value" archive="URL" data="URL">content</object>
<object height="value" width="value" data="URL" codebase="URL">content</object>
Discussion

The object is displayed at the location of the tag in the page, with a height specified by height and a width specified by width.

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), or codebase for object code of any other type.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

ol

Specifies an ordered list.

Syntax
<ol> content </ol>
Discussion

This tag specifies an ordered, numbered list. Within the bounds of this block, list items should be defined using the <li> tag.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

optgroup

Specifies a group of options.

Syntax
<optgroup label ="label"> options </optgroup>
Discussion

Within a select input 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 by label, and in Safari is displayed as bold grey text, with its associated options indented under it.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

option

Specifies a list option.

Syntax
<option value ="value"> title </option>
Discussion

Within a select input type, this tag specifies a single selectable option. The form value of the option is specified by value, and its visible name is specified by title. These can be placed directly within a select input type or within an optgroup within it.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

p

Displays a paragraph.

Syntax
<p> content </p>
Discussion

This tag indicates a paragraph in the document.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

param

Represents a parameter for an object declaration.

Syntax
<param name ="name" value ="value">
Discussion

This tag represents a specific parameter for an embedded object element. You can place any number of these , but they must be enclosed within the <object> block. The parameter’s name/key is specified by name and its value is specified by value.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

plaintext

Represents a block of preformatted text.

Syntax
<plaintext>content</plaintext>
Discussion

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.

Availability

Available in Safari 1.0 and later.

Available with limited support in iOS 1.0 and later.

pre

Represents a block of preformatted text.

Syntax
<pre> content </pre>
Discussion

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.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

q

Displays an inline quotation.

Syntax
<q> content </q>
Discussion

The text specified by content is 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.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

s

Deprecated. Defines a block of text in strikethrough style.

Syntax
<s> content </s>
Discussion

The content specified by content is rendered with a crossbar.

Availability

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.

samp

Specifies text as sample code.

Syntax
<samp> content </samp>
Discussion

This tag specifies a block of code. The text enclosed within the tags will use a “teletype” monospaced character font.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

script

Embeds and executes script code.

Syntax
 <script type ="mimetype"> code </script>
Discussion

This tag specifies a block of script code, such as JavaScript. The code specified by code is 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 by type.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

select

Specifies a selection input type.

Syntax
<select> options </select>
Discussion

This tag specifies a selection menu. This block must contain a set of option elements or optgroup elements containing options. In Safari, if the size property 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.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

small

Displays text in a small size.

Syntax
<small> content </small>
Discussion

The text specified by content is 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.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

source

Provides a resource URI for a multimedia element such as audio or video.

Syntax
<video poster="bananas.png" ... >
    <source
        src="bananas.mp4"
        type="video/mp4; codecs=&quot;avc1.42E01E, mp4a.40.2&quot;"
        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>
Discussion

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.

Availability

Available in Safari 3.1 and later.

span

Specifies an inline styleless section in a document.

Syntax
<span> content </span>
Discussion

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.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

strike

Deprecated. Defines a block of text in strikethrough style.

Syntax
<strike> content </strike>
Discussion

The content specified by content is rendered with a crossbar.

Availability

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.

strong

Specifies text as “strong” emphasized text.

Syntax
<strong> content </strong>
Discussion

This tag specifies a block of emphasized text. Styles should be more finely tuned using CSS instead of using HTML style tags.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

style

Defines an inline stylesheet.

Syntax
<style type ="mimetype"> css_declarations </style>
Discussion

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 head section of a page. If you are linking to an external stylesheet, use the link element instead.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

sub

Specifies text as subscript.

Syntax
<sub> content </sub>
Discussion

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 tags.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

sup

Specifies text as superscript.

Syntax
<sup> content </sup>
Discussion

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 tags.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

table

Defines a data table.

Syntax
<table> content </table>
Discussion

This tag defines a table structure for a page. The HTML specified by content should contain the other structural elements such as table rows ( <tr> ) and table cells ( <td> ).

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

tbody

Defines a table’s body.

Syntax
<tbody> content </tbody>
Discussion

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 content should contain the other structural elements such as table rows ( <tr> ) and table cells ( <td> ).

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

td

Defines a table cell.

Syntax
<td> content </td>
Discussion

This tag defines a cell within a table. Cells are usually enclosed by table row ( <tr> ) definitions. Consecutive table cells are placed horizontally onscreen.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

textarea

Specifies a text area input type.

Syntax
<textarea rows ="value" cols ="value"> content </select>
Discussion

This tag specifies a scrollable, multi-line text input block. You can specify its size onscreen by specifying values for rows and cols.

Safari on iOS extends the textarea tag with two additional properties, autocorrect and autocapitalize, described in “Supported Attributes.”

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

tfoot

Defines a table’s footer.

Syntax
<tfoot> content </tfoot>
Discussion

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 content should contain the other structural elements such as table rows ( <tr> ) and table cells ( <td> ).

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

th

Defines header text for a table column.

Syntax
<th> content </th>
Discussion

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 content is displayed in a bold face.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

thead

Defines a table’s header.

Syntax
<thead> content </thead>
Discussion

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 content should contain the other structural elements such as table rows ( <tr> ) and table cells ( <td> ).

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

title

Defines the visible window title for the page.

Syntax
<title> content </title>
Discussion

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. This tag must be placed in the head section of a page.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

tr

Defines a table row.

Syntax
<tr> content </tr>
Discussion

This tag defines a row within a table. Table cells are usually enclosed by these rows. Consecutive table rows are placed vertically onscreen.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

tt

Displays text in a “teletype” style.

Syntax
<tt> content </tt>
Discussion

The text specified by content 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 tags.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

u

Deprecated. Defines a block of underlined text.

Syntax
<u> content </u>
Discussion

The content specified by content is underlined.

Availability

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.

ul

Specifies an unordered list.

Syntax
<ul> content </ul>
Discussion

This tag specifies an unordered, bulletted list. Within the bounds of this block, list items should be defined using the <li> tag.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

var

Specifies a variable.

Syntax
<var> content </var>
Discussion

This tag specifies a variable. The text enclosed within the tags is italicized.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

video

Embeds video into a webpage.

Syntax
<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"
>
Discussion

The video element may contain fallback content for browsers that do not support this element. Any content enclosed within the video element is ignored by browsers that support the video element (but it must be valid HTML).

The video element supports inclusion of source elements to provide multiple versions of a video clip encoded with different codecs, at different bit rates, and so on. These source elements must be the first elements inside the video element before any fallback content. See “source” for more information.

Availability

Available in Safari 3.1 and later.

Available in iOS 3.0 and later.

wbr

Specifies a block in which line breaks are permitted.

Syntax
<wbr>content</wbr>
Discussion

Within a <nobr> block (in which line breaks are disabled), any content specified by content is permitted to use line breaks. The line breaks themselves must still be requested using the <br> tag.

Availability

Available in Safari 1.0 and later.

Available in iOS 1.0 and later.

xmp

Represents a block of literal text.

Syntax
<xmp>content</xmp>
Discussion

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.

Availability

Available in Safari 1.0 and later.

Available with limited support on iOS 1.0 and later.