Safari HTML Reference

Contents

Introduction 13
Organization of This Document 13 See Also 13

Explanation of Terms 16
Availability 16 Support Level 16

Supported HTML 17
HTML Tags 17 a 17 abbr 17 acronym 18 address 18 applet 19 area 19 audio 20 b 20 base 21 basefont 21 bdo 22 big 22 blockquote 22 body 23 br 23 button 24 canvas 24 caption 24 center 25 cite 25 code 25 col 26 colgroup 26 dd 27

2011-07-12 | © 2011 Apple Inc. All Rights Reserved.

2

del 27 dfn 28 dir 28 div 28 dl 29 dt 29 em 30 embed 30 fieldset 30 font 31 form 31 frame 32 frameset 32 h1 - h2 - ... - h6 33 head 33 hr 33 html 34 i 34 iframe 35 img (or image) 35 input 35 ins 36 isindex 36 kbd 37 keygen 37 label 38 layer 38 legend 38 li 39 link 39 listing 40 map 40 marquee 40 menu 41 meta 41 nobr 42 noembed 42 noframes 43 nolayer 43

2011-07-12 | © 2011 Apple Inc. All Rights Reserved.

3

4 . All Rights Reserved.noscript 43 object 44 ol 44 optgroup 45 option 45 p 46 param 46 plaintext 46 pre 47 q 47 s 48 samp 48 script 48 select 49 small 49 source 50 span 51 strike 51 strong 51 style 52 sub 52 sup 53 table 53 tbody 53 td 54 textarea 54 tfoot 55 th 55 thead 56 title 56 tr 57 tt 57 u 57 ul 58 var 58 video 59 wbr 59 xmp 60 2011-07-12 | © 2011 Apple Inc.

All Rights Reserved. 5 .Supported Attributes 61 Supported Attributes 61 abbr 61 accept 61 accept-charset 62 accesskey 62 action 62 align 63 alink 63 alt 63 archive 64 aria-checked 64 aria-level 64 aria-pressed 65 aria-valuemax 65 aria-valuemin 65 aria-valuenow 65 autocapitalize 66 autocomplete 67 autocorrect 67 autoplay 68 autosave 68 axis 68 background 69 behavior 69 bgcolor 69 bgproperties 70 border 70 bordercolor 70 cellpadding 70 cellspacing 71 challenge 71 char 71 charoff 72 charset 72 checked 73 cellborder 73 cite 73 class 74 2011-07-12 | © 2011 Apple Inc.

classid 74 clear 74 code 74 codebase 75 codetype 75 color 75 cols 75 colspan 76 compact 76 composite 77 content 77 contenteditable 77 controls 77 coords 78 data 78 datetime 78 declare 79 defer 79 dir 79 direction 79 disabled 80 enctype 80 end 80 face 81 for 81 frame 81 frameborder 82 headers 82 height 82 hidden 83 href 83 hreflang 83 hspace 84 http-equiv 84 id 84 incremental 85 ismap 85 keytype 85 label 85 2011-07-12 | © 2011 Apple Inc. 6 . All Rights Reserved.

7 .lang 86 language 86 leftmargin 86 link 87 longdesc 87 loop 87 loopend 88 loopstart 88 manifest 88 marginheight 89 marginwidth 89 max 89 maxlength 90 mayscript 90 media 90 method 91 min 91 multiple 91 name 91 nohref 92 noresize 92 nosave 92 noshade 92 nowrap 93 object 93 onabort 93 onbeforecopy 94 onbeforecut 94 onbeforepaste 94 onbeforeunload 94 onblur 94 onchange 95 onclick 95 oncontextmenu 95 oncopy 95 oncut 95 ondblclick 96 ondrag 96 ondragend 96 2011-07-12 | © 2011 Apple Inc. All Rights Reserved.

ondragenter 96 ondragleave 96 ondragover 97 ondragstart 97 ondrop 97 onerror 97 onfocus 97 ongesturechange 98 ongestureend 98 ongesturestart 98 oninput 98 onkeydown 99 onkeypress 99 onkeyup 99 onload 99 onmousedown 99 onmousemove 100 onmouseout 100 onmouseover 100 onmouseup 100 onmousewheel 101 onorientationchange 101 onpaste 101 onreset 101 onresize 101 onscroll 102 onsearch 102 onselect 102 onselectstart 102 onsubmit 102 ontouchcancel 103 ontouchend 103 ontouchmove 103 ontouchstart 103 onunload 104 oversrc 104 placeholder 104 playcount 104 pluginpage 105 2011-07-12 | © 2011 Apple Inc. 8 . All Rights Reserved.

All Rights Reserved. 9 .pluginspage 105 pluginurl 105 poster 106 precision 106 profile 106 prompt 106 readonly 107 rel 107 results 107 rev 107 role 108 rows 108 rowspan 108 rules 109 scheme 109 scope 109 scrollamount 110 scrolldelay 110 scrolling 110 selected 111 shape 111 size 111 span 112 src 112 standby 112 start 113 style 113 summary 113 tabindex 114 tableborder 114 target 114 text 115 title 115 topmargin 115 truespeed 115 type 116 usemap 116 valign 117 value 117 2011-07-12 | © 2011 Apple Inc.

All Rights Reserved. 10 .valuetype 118 version 118 vlink 118 vspace 119 webkit-playsinline 119 width 119 wrap 120 Supported Input Values 121 Input Type Values 121 button 121 checkbox 121 date 121 datetime 122 datetime-local 122 email 122 file 122 hidden 122 image 123 month 123 number 123 password 123 radio 123 range 124 reset 124 search 124 submit 124 tel 125 text 125 time 125 url 125 week 125 Supported Meta Tags 126 Apple-Specific Meta Tag Keys 126 apple-mobile-web-app-capable 126 apple-mobile-web-app-status-bar-style 126 format-detection 127 viewport 127 2011-07-12 | © 2011 Apple Inc.

Supported Accessibility Roles 131 Accessibility Roles 131 button 131 checkbox 131 group 131 heading 132 img 132 link 132 listbox 132 listitem 132 menu 133 menubar 133 menuitem 133 menuitemcheckbox 133 menuitemradio 133 option 133 progressbar 134 radio 134 textbox 134 Document Revision History 135 2011-07-12 | © 2011 Apple Inc. 11 . All Rights Reserved.

12 . All Rights Reserved.Tables Supported Meta Tags 126 Table 1 Table 2 Viewport properties 129 Special viewport property values 130 2011-07-12 | © 2011 Apple Inc.

Introduction This document details every HTML element and property supported by WebKit and Safari on all platforms. “Supported Meta Tags” (page 126) describes additional keys for the meta tag. All Rights Reserved. and Windows. This includes standard tags (as defined by the World Wide Web Consortium. Organization of This Document The following articles describe key aspects of Safari's HTML support: ● “Explanation of Terms” (page 16) explains terminology used in this reference. “Safari” in this document refers to Safari in Mac OS X and Windows. If you are creating web content for Safari platforms. “Safari” refers to Safari on any platform.w3. Note: When used to describe the platform availability of a particular element or attribute. This document is not intended as a comprehensive specification. “Supported Input Values” (page 121) describes supported types for the input tag. ● ● ● ● ● See Also There are a variety of other resources for Safari web content developers in the ADC Reference Library. You should read this if you are developing web content that will be displayed in Safari or within a WebKit-based application. “Supported Attributes” (page 61) describes the HTML attributes supported by Safari. The HTML5 specification is available at http://dev. then you should read: 2011-07-12 | © 2011 Apple Inc. iOS. Elsewhere. “Supported Accessibility Roles” (page 131) describes supported accessibility roles defined in the WAI-ARIA specification. or W3C).html. common tags that are not part of a standard.org/html5/spec/Overview. which include Mac OS X. “Supported HTML” (page 17) describes all the HTML elements supported by Safari. and Apple extensions. 13 .

and transforms properties. If you are using JavaScript and want access to the DOM or use the canvas object. YouTube. If you are designing web content for Safari on iOS. then you should read: ● Safari HTML5 Audio and Video Guide describes how to use the HTML5 audio and video elements. optimized for. then you should read: ● Safari CSS Visual Effects Guide describes how to use the CSS visual effects properties—the transition. then read: ● WebKit DOM Programming Topics describes how to use JavaScript in web content for WebKit-based applications. ● If you want to learn more about visual effects. Text. Apple URL Scheme Reference describes how to use the Phone. If you want to use the JavaScript media APIs. then you should read: ● Safari DOM Additions Reference describes the touch event classes that you use to handle multi-touch gestures in JavaScript. ● If you are developing web content for Safari on the desktop and iOS. ● 2011-07-12 | © 2011 Apple Inc. and Maps applications from your webpages. If you want to learn more about what Cascading Style Sheets (CSS) properties are supported in Safari. iTunes. If you want to learn more about the JavaScript multi-touch event support. animation. All Rights Reserved. Mail. then you should also read: ● iOS Human Interface Guidelines provides user interface guidelines for designing webpages and web applications for Safari on iOS. It also covers the JavaScript APIs for handling visual effects events. WebKit DOM Reference describes the API for accessing the WebKit's Document Object Model. and customized for Safari on any platform. then you should read: ● Safari Developer Tools Guide describes how to use the Debug menu in Safari. Dashcode User Guide describes how to use Dashcode to create web applications.Introduction See Also ● Safari Web Content Guide describes how to create content that is compatible with. 14 . then read: ● Safari CSS Reference describes the CSS properties supported by Safari and WebKit applications.

then go to The WebKit Open Source Project. All Rights Reserved. 2011-07-12 | © 2011 Apple Inc.org/specs.Introduction See Also If you want to learn more about WebKit or contribute to the open source project. If you want to read the WebKit W3C proposals then go to: http://www.webkit. 15 .

Elements available in Safari for Mac OS X and Windows are not automatically available in iOS. and vice versa. 16 . The possible values are: ● Apple extension—properties defined by Apple. Support Level Support Level tells the source of a given tag if it is not part of a W3C standard or otherwise supported by the majority of current browsers. Availability Availability tells the versions of Safari in which the element first appeared or was deprecated. are specific to Safari on iOS. where noted. A few of these extensions. Deprecated tags are not guaranteed to be supported in the future. These properties are fully supported by WebKit and Safari. Tags may be shifted to other categories as time passes. All Rights Reserved. particularly as tags are added to relevant standards. 2011-07-12 | © 2011 Apple Inc.Explanation of Terms This article describes terms used in an element or attribute listing.

When the name attribute is used. 17 .. All Rights Reserved. the tag becomes an anchor which can be linked to by a hyperlink. If a tag is not listed here. the text or image enclosed by the tag becomes a hyperlink. Available in iOS 1.Supported HTML Safari and WebKit implement a large subset of the HTML 5 Specification defined by the World Wide Web Consortium (W3C). abbr Specifies an abbreviated form of a string. it is not supported by Safari and WebKit.0 and later. HTML Tags a Specifies a hyperlink or a page anchor. </a> Discussion When the href attribute is used with this tag.0 and later. Syntax <a href="URL"> . linked to the URL specified by URL. Syntax <abbr title ="fullstring"> abbrev </abbr> 2011-07-12 | © 2011 Apple Inc.. Availability Available in Safari 1. This reference defines every symbol in the specification that Safari implements.

acronym Specifies the acronym form of a string. 18 . Syntax <address> streetaddress </address> Discussion This tag specifies a street address.Supported HTML HTML Tags Discussion In Safari.0 and later. Line breaks (such as ones between a street address and a city/state/zip) are not automatically inserted. address Specifies a street address. such as screen readers. 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.0 and later. Availability Available in Safari 1. This tag is also useful for applications that read the underlying HTML code of a page. 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. 2011-07-12 | © 2011 Apple Inc. This tag is also useful for applications that read the underlying HTML code of a page. Syntax <acronym title ="fullstring"> acro </acronym> Discussion In Safari. Available in iOS 1.0 and later. such as screen readers. The address enclosed within the tags is italicized. Available in iOS 1. All Rights Reserved.0 and later. Availability Available in Safari 1.

Supported HTML HTML Tags Availability Available in Safari 1. applet Embeds a Java applet within a page. or code if the applet is in a standard java class file. All Rights Reserved. bounding shape specified by shape and coordinates specified by coords. Syntax <area shape ="shapetype" coords ="coords" href ="URL"> Discussion This tag defines discrete areas within an image map (defined by an enclosing <map> tag). Available in iOS 1. linked to the URL specified by URL. The area defined by this tag will act as a hyperlink.0 and later. with a height specified by height and a width specified by width. Availability Available in Safari 1.0 and later. This tag has been deprecated in the HTML 4.0 and later. 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. Though deprecated.0 and later. 2011-07-12 | © 2011 Apple Inc.01 standard. area Specifies a specific area within an image map. this is the preferred element for embedding Java applets in Safari. Availability Available in Safari 1. Available in iOS 1. 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. 19 .0 and later.

0 and later.07" <!-. Syntax <audio src="url" autoplay="autoplay" <!-.27" playcount="4" <!-. The audio element supports inclusion of source elements to provide multiple versions of an audio clip encoded with different codecs. --> start="00:00:00. b Displays text in a bold style. 20 .Boolean attribute.00" loopstart="00:00:00. See “source” (page 50) for more information.19" end="00:00:00.Supported HTML HTML Tags audio Embeds audio into a webpage. and so on. Any content enclosed within the audio element is ignored by browsers that support the audio element (but it must be valid HTML). at different bit rates. 2011-07-12 | © 2011 Apple Inc. Available in iOS 3.0 and later. Styles should be more finely tuned using CSS instead of using HTML style tags. Omit to prevent autoplay. All Rights Reserved.play 4x --> controls="true" > Discussion The audio element may contain fallback content for browsers that do not support this element.7 seconds --> loopend="00:00:00. Availability Available in Safari 1. These source elements must be the first elements inside the audio element before any fallback content. 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.

This tag has been deprecated in the HTML 4.01 standard. Specifies the base font for a page. 21 .0 and later. it will not be affected by this tag. or Java applet—on the page.0 and later. hyperlink. 2011-07-12 | © 2011 Apple Inc. Available in iOS 1. If a URL is specified absolutely (with a fully-qualified URL). basefont Deprecated.Supported HTML HTML Tags Availability Available in Safari 1. Availability Available in Safari 1. The font is specified by face. These attributes and their various options are defined in “ Supported Attributes ” (page 61).0 and later. its size is specified by size. 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. You should use CSS styling to set this property for the enclosing elements unless you have a specific reason to use this tag. All Rights Reserved. Availability Available in Safari 1. Available in iOS 1. and its color is specified by color. base Defines the base URL for all linked objects on a page.0 and later. Syntax <basefont color ="color" face ="face" size ="size"> Discussion The font is used as the default font for the page unless otherwise specified. This tag must be placed in the head section of a page.0 and later.

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. All Rights Reserved. Syntax <bdo dir ="dir"> content </bdo> Discussion The text specified by content is displayed left-to-right if dir is set to “ltr”. Styles should be more finely tuned using CSS instead of using HTML style tags. blockquote Displays text in an indented quotation style.0 and later. Available in iOS 1. 22 .Supported HTML HTML Tags bdo Displays text in a different direction.0 and later. Syntax <blockquote> content </blockquote> 2011-07-12 | © 2011 Apple Inc.0 and later. big Displays text in a large size. Availability Available in Safari 1.0 and later. Available in iOS 1. it is displayed right-to-left if it is set to “rtl.” Availability Available in Safari 1.

Styles should be more finely tuned using CSS instead of using HTML style tags. Available in iOS 1. 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.0 and later.0 and later. but otherwise will match the style of the enclosing element. Availability Available in Safari 1. Availability Available in Safari 1.01 and should be replaced with CSS style attributes. Though you can specify style attributes within this tag. 23 . Available in iOS 1.0 and later. Available in iOS 1.0 and later.0 and later. this behavior has been deprecated in HTML 4. Syntax <br> Discussion Availability Available in Safari 1.Supported HTML HTML Tags Discussion The text specified by content is indented (on both sides of the text block).0 and later. br Represents a single line break. 2011-07-12 | © 2011 Apple Inc. All Rights Reserved.

Available in iOS 1. This differs from the “button” input type in that you can specify content within the button tags. 24 . Syntax <button> content </button> Discussion The text specified by content is displayed within the frame of the button. canvas Specifies an advanced drawing region. You can specify any of the other attributes you would normally specify for an image. Availability Available in Safari 1. The canvas tag supports the same attributes as the <img> tag with the exception of the src attribute. which is ignored. The identifier specified by id is required for Dashboard widgets. Syntax <canvas id="identifer" height="value" width="value"> Discussion This tag specifies the location of an advanced drawing region. Availability Available in Safari 1. as are the height and width specified by height and width respectively. Read “Using the Canvas” for more information on the canvas tag.3 and later. Available in iOS 1.Supported HTML HTML Tags button Defines an interactive button on a page. All Rights Reserved.0 and later. caption Defines a caption for an HTML table. Syntax <caption> content </caption> 2011-07-12 | © 2011 Apple Inc.0 and later.0 and later.

Available in iOS 1.0 and later.01 standard. center Deprecated. Syntax <center> content </center> Discussion The content specified by content is centered within its enclosing element. All Rights Reserved. Defines a region of content to be centered. This tag has been deprecated in the HTML 4.0 and later. code Specifies text as computer code.0 and later.0 and later. 2011-07-12 | © 2011 Apple Inc.0 and later. The text enclosed within the tags is italicized. Available in iOS 1.Supported HTML HTML Tags Discussion The text specified by content is displayed as a caption for the table in which it is enclosed. 25 .0 and later. Syntax <cite> content </cite> Discussion This tag specifies a citation. Styles should be more finely tuned using CSS instead of using HTML style tags. Available in iOS 1. cite Specifies a citation. Availability Available in Safari 1. Availability Available in Safari 1. Availability Available in Safari 1.

A series of <col> tags must be placed in order of the actual table columns. All Rights Reserved.These must be placed within a table or a colgroup.0 and later.0 and later. For example. 26 . Availability Available in Safari 1.Supported HTML HTML Tags Syntax <code> content </code> Discussion This tag specifies a block of code. Availability Available in Safari 1. Available in iOS 1. Syntax <col properties > Discussion This tag allows you specify attributes for a given table column. The text enclosed within the tags will use a “teletype” monospaced character font. you would use <col align="center">.0 and later. colgroup Specifies attributes for multiple columns in a table. with those attributes specified by properties. to set center column alignment for a columns. Available in iOS 1. Syntax <colgroup properties ></colgroup> 2011-07-12 | © 2011 Apple Inc.0 and later. col Specifies attributes of columns in a table.

0 and later. Available in iOS 1. All Rights Reserved. to set center column alignment for three different columns. which is marked with a crossbar. Available in iOS 1.Supported HTML HTML Tags Discussion This tag allows you specify attributes for multiple table columns. Syntax <dd> content </dd> Discussion This tag specifies a definiton for a term within an HTML definition list. you would use <colgroup span="3" align="center">. Availability Available in Safari 1. del Specifies a block of deleted text. Availability Available in Safari 1. 2011-07-12 | © 2011 Apple Inc.0 and later. These must be placed within a table. 27 . Available in iOS 1.0 and later. For example. Syntax <del> content </del> Discussion This tag specifies a block of deleted text. 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.0 and later. with those attributes specified by properties.0 and later. dd Specifies a definition for a term.

Supported HTML HTML Tags dfn Specifies a definition. Syntax <div> content </div> 2011-07-12 | © 2011 Apple Inc. Availability Available in Safari 1.01 standard.0 and later.0 and later. Specifies a directory list. Syntax <dir> <li> content </li> </dir> Discussion This tag specifies a directory list. This tag has been deprecated in the HTML 4. and the structure should be defined instead with the <ul> and <ol> tags. div Specifies a styleless section in a document. Availability Available in Safari 1. each element of which is specified by an <li> tag. Syntax <dfn> content </dfn> Discussion This tag specifies a definition of any sort. dir Deprecated. Available in iOS 1.. All Rights Reserved.0 and later. List styles should be more finely tuned using CSS instead of using HTML style tags. 28 .0 and later. Available in iOS 1.

and their definitions should be marked using the <dd> tag. Within the bounds of this block. and be marked using the <dd> tag. All Rights Reserved. Available in iOS 1. Definitions should follow each term. dl Specifies a definition list.Supported HTML HTML Tags Discussion This tag specifies a section in a document. Multiple divs will stack vertically on the page. dt Specifies a definition term.0 and later. Availability Available in Safari 1. Availability Available in Safari 1.0 and later. Available in iOS 1. Availability Available in Safari 1.0 and later. as a block element. Use CSS styles to tune the style properties of this element.0 and later. Available in iOS 1. Syntax <dl> content </dl> Discussion This tag specifies a definition list. 29 .0 and later. 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> ). 2011-07-12 | © 2011 Apple Inc.0 and later. terms to be defined should be marked using the <dt> tag.

Availability Available in Safari 1. This tag has been deprecated in the HTML 4. The location of the object is given by the URL specified by src. All Rights Reserved. if visible. with a height specified by height and a width specified by width.0 and later. Styles should be more finely tuned using CSS instead of using HTML style tags.0 and later. embed Deprecated. Syntax <embed height ="value" width ="value" src/code="URL" > content </embed> Discussion The object. Available in iOS 1. is displayed at the location of the tag in the page.0 and later. Syntax <em> content </em> Discussion This tag specifies a block of emphasized text. or code if the applet is in a standard java class file.0 and later. You should use the <object> tag to embed objects unless you have a specific reason to use this tag . Embeds an object within a page.01 standard. Syntax <fieldset> 2011-07-12 | © 2011 Apple Inc. Available in iOS 1. fieldset Specifies a set of fields. 30 . Availability Available in Safari 1.Supported HTML HTML Tags em Specifies emphasized text.

Syntax <font> content </font> Discussion The content specified by content is altered based on a variety of properties. All Rights Reserved.0 and later. size. Defines a font style for the content the tag encloses. and color. Availability Available in Safari 1. form Specifies an HTML form. Available in iOS 1.0 and later.0 and later. Styles should be more finely tuned using CSS instead of using HTML style tags. Syntax <form> formContent </form> 2011-07-12 | © 2011 Apple Inc. such as face. The fields themselves are made with input tags specified by input and the name of the field is plaintext specified by caption. This tag has been deprecated in the HTML 4. Available in iOS 1.01 standard.0 and later. font Deprecated. 31 .Supported HTML HTML Tags caption input caption input </fieldset> Discussion This tag encloses a set of input fields. Availability Available in Safari 1. and will draw a box around them.

0 and later. The URL for the frame is specified by src. text fields. 2011-07-12 | © 2011 Apple Inc.0 and later. 32 . and password fields) should be enclosed in its own form tag set. Each individual form (with its variety of inputs such as checkboxes. Availability Available in Safari 1.Supported HTML HTML Tags Discussion This tag specifies a form on a page. The size of each column should be specified by the cols and rows properties. frameset Specifies a frameset. Safari on iOS extends the form tag with two additional properties. All Rights Reserved. Available in iOS 1. the form’s submit button should also be enclosed within this tag set. The URL for the frame is specified by src. autocorrect and autocapitalize. Availability Available in Safari 1. described in “Supported Attributes” (page 61). Available in iOS 1. If using the form for some kind of submission. Syntax <frame src ="URL"> Discussion This tag specifies an individual frame within a frameset. frame Specifies an individual frame. Syntax <frameset> Discussion This tag specifies the overall frameset for a number of frames (each specified with the <frame> tag.0 and later.0 and later.

.0 and later. 2011-07-12 | © 2011 Apple Inc. Availability Available in Safari 1.0 and later.0 and later. . Available in iOS 1. Syntax <head> content </head> Discussion This tag can contain a number of informational tags. Syntax <h#> content </h#> Discussion This tag specifies a block of header text. such as <title> for the page title or <style> for a CSS definition block..Supported HTML HTML Tags Availability Available in Safari 1. All Rights Reserved. Availability Available in Safari 1. with <h1> representing the largest font size and <h6> representing the smallest. 33 . Available in iOS 1.0 and later.0 and later. Available in iOS 1. hr Specifies a horizontal line. Styles should be more finely tuned using CSS instead of using HTML style tags. h1 .0 and later.h2 ..h6 Specifies various headers. head Specifies metainformation about the HTML document.

0 and later. All Rights Reserved. 2011-07-12 | © 2011 Apple Inc. i Displays text in an italic style. Styles should be more finely tuned using CSS instead of using HTML style tags. 34 .0 and later. Availability Available in Safari 1. Styles should be more finely tuned using CSS instead of using HTML style tags. and should encompass all the content of the page.Supported HTML HTML Tags Syntax <hr> Discussion This tag specifies a horizontal line. Available in iOS 1.0 and later. html Specifies the HTML document. 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. Available in iOS 1. Availability Available in Safari 1. Syntax <html> Discussion This tag specifies an HTML document.0 and later.

Available in iOS 1. img (or image) Displays an inline image. input Displays an input for an HTML form.0 and later.0 and later. All Rights Reserved.0 and later.Supported HTML HTML Tags Availability Available in Safari 1. Syntax <input type ="type"> 2011-07-12 | © 2011 Apple Inc. Availability Available in Safari 1. image is available in Safari 3.0 and later. Availability img is available in Safari 1.0 and later. Available in iOS 1. Both are Available in iOS 1.0 and later.0 and later. iframe Displays a URL in an inline frame. 35 . Syntax <iframe src ="URL"></iframe> Discussion The URL specified by src will load into an inline frame placed wherever the iframe is entered. Syntax <img src ="URL"> Discussion The image file specified by src is displayed inline in the enclosing element.

Safari on iOS extends the input tag with two additional properties. radio for a radio button element. Availability Available in Safari 1.0 and later. for a basic button. Available in iOS 1. Syntax <ins> content </ins> Discussion This tag specifies a block of inserted text. Availability Available in Safari 1. All Rights Reserved.0 and later. isindex Deprecated. Specifies an index field.Supported HTML HTML Tags Discussion This tag specifies some kind of input mechanism in an HTML form. hidden for an invisible input type. 36 . which is marked with an underline.0 and later. autocorrect and autocapitalize. The type specified by type can be one of the following: button. Available in iOS 1. password for a shielded password field. checkbox for a checkbox element. reset for a form-reset button. described in “Supported Attributes” (page 61). or text for a standard text field.0 and later. Syntax <isindex prompt ="prompt"> 2011-07-12 | © 2011 Apple Inc. submit for a form-submit button. ins Specifies a block of inserted text. file for a file upload interface.

Syntax <keygen name="name" challenge="challenge_value"> Discussion This tag places a form element on the page which will generate a 512.Supported HTML HTML Tags Discussion This tag displays a prompt and a search field. The text enclosed within the tags will use a “teletype” monospaced character font.0 and later. which as a form will submit the value using a GET request. 1024. The default prompt in Safari is “This is a searchable index.0 and later. kbd Specifies text as keyboard text. Availability Available in Safari 1.0 and later. Available in iOS 1. but this can be overridden by specifying a string for the prompt attribute. 37 . Syntax <kbd> content </kbd> Discussion This tag specifies a block of keyboard text. keygen Provides public key generation for forms. or 2048-bit public key as its value.0 and later. You should use standard HTML input types to process queries instead of using this tag. The challenge specified by challenge and the public key are DER encoded and digitally signed with a private key (stored in a local database). Enter search keywords:” . The result is then encoded in base64 and is returned as the value of this field. All Rights Reserved. This tag has been deprecated in the HTML 4.01 standard. 2011-07-12 | © 2011 Apple Inc. Availability Available in Safari 1. Available in iOS 1.

Available with limited support in iOS 1.0 and later.01 Transitional documents. All Rights Reserved. Availability Available in Safari 1. Syntax <label for ="id"> content </label> Discussion This tag specifies a label for the input control whose name is specified by for. This tag is not well-supported and should be replaced with <iframe> frames using CSS styling techniques in HTML 4. In HTML 4.01 Strict documents. this tag should be replaced with <object> or <div>. label Specifies a label for input controls. 38 .Supported HTML HTML Tags Availability Available in Safari 1. Syntax <layer>content</layer> Discussion This tag specifies an independent layer of content on a webpage.0 and later. The text specified by content makes up the body of the label. 2011-07-12 | © 2011 Apple Inc. legend Specifies the caption for a fieldset.0 and later.0 and later. layer Specifies individual layers on a webpage. Available in iOS 1.0 and later. Availability Available in Safari 1. Available in iOS 1.0 and later.

this tag specifies single list element. The caption specified by content is merged with the box surrounding the fieldset. 39 .0 and later. Available in iOS 1. All Rights Reserved. or <ol> for an ordered list). 2011-07-12 | © 2011 Apple Inc. whose content is specified by content.0 and later. Syntax <li> content </li> Discussion Within a list block (specified by <ul> for an unordered list.0 and later. For example.Supported HTML HTML Tags Syntax <legend> content </legend> Discussion This tag specifies the label for a fieldset (specified by the <fieldset> tag). List styles should be more finely tuned using CSS instead of using HTML style tags. you should use this tag in the head of an HTML document to specify an external CSS stylesheet. Syntax <link href ="URL"> Discussion This tag specifies an external file which is related to the HTML document it is enclosed in. li Specifies a list element. Available in iOS 1.0 and later. Availability Available in Safari 1. Availability Available in Safari 1. link Specifies a connection to an external file.

listing Deprecated. Syntax <map name ="id" id ="id"> Discussion This tag encloses the area elements that define the regions of an image map. Equivalent to “pre” (page 47). Deprecated in HTML 3. map Specifies a browser-processed image map. Available in iOS 1.0 and later. You should not use it in new documents.0 and later.2. not available in HTML 4 and later.Supported HTML HTML Tags Availability Available in Safari 1. Availability Available in Safari 1. All Rights Reserved.0 and later. The identifier specified by id and by name should be used by an <img> element’s usemap property.0 and later. Syntax <listing> Discussion This tag is supported for backwards compatibility only. Available in iOS 1. Available in iOS 1.0 and later. 2011-07-12 | © 2011 Apple Inc. Availability Available in Safari 3.0 and later. 40 . marquee Specifies a horizontally scrolling block of content.

41 . Specifies a menu list. All Rights Reserved. The content specified by content can be arbitrary—it is not limited to text alone. Available in iOS 1. Syntax <menu> content </menu> Discussion This tag specifies a definition list.0 and later.0 and later. Available in iOS 1. and the structure should be defined instead with the <ul> and <ol> tags. Syntax <meta name ="title" content ="content"> 2011-07-12 | © 2011 Apple Inc.0 and later. meta Specifies metainformation about an HTML page. You can specify a custom width using CSS styling techniques. Within the bounds of this block.0 and later. terms to be defined should be marked using the <dt> tag. List styles should be more finely tuned using CSS instead of using HTML style tags. Availability Available in Safari 1. across 100% of the enclosing element). and their definitions should be marked using the <dd> tag. This tag has been deprecated in the HTML 4.Supported HTML HTML Tags Syntax <marquee>content</marquee> Discussion This tag specifies a block of content that scrolls horizontally (by default.01 standard. menu Deprecated. Availability Available in Safari 1.

Supported HTML HTML Tags

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” (page 126). 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.

2011-07-12 | © 2011 Apple Inc. All Rights Reserved.

42

Supported HTML HTML Tags

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>

2011-07-12 | © 2011 Apple Inc. All Rights Reserved.

43

Supported HTML HTML Tags

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.

2011-07-12 | © 2011 Apple Inc. All Rights Reserved.

44

Available in iOS 1. with its associated options indented under it.Supported HTML HTML Tags Availability Available in Safari 1. The title of the subgroup is specified by label. Syntax <option value ="value"> title </option> Discussion Within a select input type. option Specifies a list option. Availability Available in Safari 1. and its visible name is specified by title. Available in iOS 1. optgroup Specifies a group of options. Available in iOS 1. 45 . These can be placed directly within a select input type or within an optgroup within it. 2011-07-12 | © 2011 Apple Inc. individual options are specified using the <option> tag. Within the bounds of this block.0 and later.0 and later.0 and later. The form value of the option is specified by value.0 and later.0 and later. this tag specifies a subgroup of options.0 and later. All Rights Reserved. this tag specifies a single selectable option. Syntax <optgroup label ="label"> options </optgroup> Discussion Within a select input type. and in Safari is displayed as bold grey text. Availability Available in Safari 1.

but they must be enclosed within the <object> block. param Represents a parameter for an object declaration. Syntax <p> content </p> Discussion This tag indicates a paragraph in the document. Available in iOS 1.0 and later. Availability Available in Safari 1. Syntax <param name ="name" value ="value"> Discussion This tag represents a specific parameter for an embedded object element.Supported HTML HTML Tags p Displays a paragraph. All Rights Reserved.0 and later. 46 . Availability Available in Safari 1. Syntax <plaintext>content</plaintext> 2011-07-12 | © 2011 Apple Inc.0 and later. plaintext Represents a block of preformatted text.0 and later. You can place any number of these . Available in iOS 1. The parameter’s name/key is specified by name and its value is specified by value.

Availability Available in Safari 1.0 and later. Availability Available in Safari 1. Syntax <q> content </q> Discussion The text specified by content is displayed in quotes but otherwise will match the style of the enclosing element. text enclosed in this element is also rendered in a monospace “teletype” font. specifically line breaks and multiple spaces (normal text operation in Safari displays no difference between a single space and multiple consecutive spaces). Available with limited support in iOS 1.Supported HTML HTML Tags Discussion This tag preserves the formatting of the block of text specified by content. Available in iOS 1. 2011-07-12 | © 2011 Apple Inc. 47 . All Rights Reserved. Syntax <pre> content </pre> Discussion This tag preserves the formatting of the block of text specified by content. text enclosed in this element is also rendered in a monospace “teletype” font. In Safari. This also stops the interpretation of HTML tags.0 and later. q Displays an inline quotation. so they are rendered onscreen. In Safari. This tag is not well-supported and may cause unintended behavior in Safari. Styles should be more finely tuned using CSS instead of using HTML style tags. specifically line breaks and multiple spaces (normal text operation in Safari displays no difference between a single space and multiple consecutive spaces). consider using the <pre> tag instead.0 and later. pre Represents a block of preformatted text.0 and later.

0 and later.Supported HTML HTML Tags Availability Available in Safari 1.0 and later. Availability Available in Safari 1. Available in iOS 1. script Embeds and executes script code. 48 . samp Specifies text as sample code. Available in iOS 1. Availability Available in Safari 1. The <del> tag is more appropriate for this function. s Deprecated. Defines a block of text in strikethrough style.0 and later. The text enclosed within the tags will use a “teletype” monospaced character font. This tag has been deprecated in the HTML 4.0 and later. 2011-07-12 | © 2011 Apple Inc.0 and later.0 and later. Syntax <samp> content </samp> Discussion This tag specifies a block of code. Styles should be more finely tuned using CSS instead of using HTML style tags. Syntax <s> content </s> Discussion The content specified by content is rendered with a crossbar. Available in iOS 1. All Rights Reserved.01 standard.

if the size property is explicitly set for this tag. select Specifies a selection input type. but is visible in the page source.Supported HTML HTML Tags Syntax <script type ="mimetype"> code </script> Discussion This tag specifies a block of script code. such as JavaScript. All Rights Reserved. Available in iOS 1. Availability Available in Safari 1. Available in iOS 1. Availability Available in Safari 1. small Displays text in a small size.0 and later. the input box will resemble a Mac OS X combo box. 49 .0 and later. otherwise it will resemble a pop-up menu. Syntax <small> content </small> 2011-07-12 | © 2011 Apple Inc. The MIME type of the script should be specified by type. In Safari. Syntax <select> options </select> Discussion This tag specifies a selection menu.0 and later. The code specified by code is invisible onscreen. This block must contain a set of option elements or optgroup elements containing options. Code embedded within script tags (unless defined inside functions) is executed immediately on page load.0 and later.

.Supported HTML HTML Tags Discussion The text specified by content is displayed in a smaller size but otherwise will match the style of the enclosing element. Syntax <video poster="bananas.. Styles should be more finely tuned using CSS instead of using HTML style tags. Availability Available in Safari 3.40.png" .42E01E. Browsers use this information to choose the media that is most appropriate according to available codecs.></source> <source .1 and later.16:9 --> <!-.2&quot.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.78" > </source> <source ..0 and later. and so on. screen resolution. source Provides a resource URI for a multimedia element such as audio or video.></source> <!-. Available in iOS 1. Availability Available in Safari 1. codecs=&quot..0 and later. mp4a. > <source src="bananas.. 2011-07-12 | © 2011 Apple Inc. All Rights Reserved.avc1.mp4" type="video/mp4.." media="screen" pixelration="1. 50 .

Syntax <strong> content </strong> 2011-07-12 | © 2011 Apple Inc. Use CSS styles to tune the style properties of this element. Syntax <strike> content </strike> Discussion The content specified by content is rendered with a crossbar. All Rights Reserved. Availability Available in Safari 1.0 and later. This tag has been deprecated in the HTML 4.01 standard.0 and later. Styles should be more finely tuned using CSS instead of using HTML style tags. Multiple consecutive spans are placed horizontal on the page by default.0 and later. Syntax <span> content </span> Discussion This tag specifies a section in a document.Supported HTML HTML Tags span Specifies an inline styleless section in a document. strike Deprecated. Defines a block of text in strikethrough style. strong Specifies text as “strong” emphasized text.0 and later. Available in iOS 1. Available in iOS 1. The <del> tag is more appropriate for this function. Availability Available in Safari 1. 51 .

Availability Available in Safari 1. Available in iOS 1. Styles should be more finely tuned using CSS instead of using HTML style tags.Supported HTML HTML Tags Discussion This tag specifies a block of emphasized text. This tag should be placed in the head section of a page.0 and later. 2011-07-12 | © 2011 Apple Inc. If you are linking to an external stylesheet. Available in iOS 1. All Rights Reserved. Syntax <style type ="mimetype"> css_declarations </style> Discussion This tag specifies a CSS stylesheet within the page.0 and later. style Defines an inline stylesheet. 52 . but otherwise matches the style of the enclosing element. Styles should be more finely tuned using CSS instead of using HTML style tags. All CSS declarations should be placed within this block.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.0 and later. Availability Available in Safari 1. use the link element instead.

2011-07-12 | © 2011 Apple Inc. Styles should be more finely tuned using CSS instead of using HTML style tags. All Rights Reserved. but otherwise matches the style of the enclosing element. table Defines a data table.0 and later. Available in iOS 1. tbody Defines a table’s body. Available in iOS 1.0 and later. 53 . Syntax <sup> content </sup> Discussion The text specified by content is displayed in a smaller size and is superscripted. Availability Available in Safari 1. The HTML specified by content should contain the other structural elements such as table rows ( <tr> ) and table cells ( <td> ).0 and later.0 and later.0 and later. sup Specifies text as superscript. Available in iOS 1.Supported HTML HTML Tags Availability Available in Safari 1. Syntax <table> content </table> Discussion This tag defines a table structure for a page.0 and later. Availability Available in Safari 1.

All Rights Reserved.0 and later. 54 . It is only a structural definition and by default does not render anything unique. Available in iOS 1.0 and later. Availability Available in Safari 1. so the HTML specified by content should contain the other structural elements such as table rows ( <tr> ) and table cells ( <td> ).Supported HTML HTML Tags Syntax <tbody> content </tbody> Discussion This tag defines a the body for a table. Cells are usually enclosed by table row ( <tr> ) definitions. td Defines a table cell.0 and later. textarea Specifies a text area input type. Consecutive table cells are placed horizontally onscreen. Availability Available in Safari 1. Available in iOS 1.0 and later. Syntax <td> content </td> Discussion This tag defines a cell within a table. Syntax <textarea rows ="value" cols ="value"> content </select> 2011-07-12 | © 2011 Apple Inc.

It is only a structural definition and by default does not render anything unique. 55 .Supported HTML HTML Tags Discussion This tag specifies a scrollable. Available in iOS 1.0 and later. Available in iOS 1. 2011-07-12 | © 2011 Apple Inc. multi-line text input block.0 and later. Availability Available in Safari 1. described in “Supported Attributes” (page 61). Safari on iOS extends the textarea tag with two additional properties. and should correspond in number to table cell definitions in later rows. Syntax <th> content </th> Discussion Table headers should be placed in their own table row. tfoot Defines a table’s footer.0 and later. usually the first in a table definition. You can specify its size onscreen by specifying values for rows and cols. the text specified by content is displayed in a bold face. Availability Available in Safari 1. In Safari. so the HTML specified by content should contain the other structural elements such as table rows ( <tr> ) and table cells ( <td> ). autocorrect and autocapitalize. All Rights Reserved.0 and later. Syntax <tfoot> content </tfoot> Discussion This tag defines a footer for a table. th Defines header text for a table column.

Syntax <thead> content </thead> Discussion This tag defines a header for a table. title Defines the visible window title for the page.Supported HTML HTML Tags Availability Available in Safari 1.0 and later. It is only a structural definition and by default does not render anything unique.0 and later. so the HTML specified by content should contain the other structural elements such as table rows ( <tr> ) and table cells ( <td> ).0 and later. This tag must be placed in the head section of a page. Available in iOS 1.0 and later. but remains invisible in embedded WebKit web views unless requested programatically. Available in iOS 1. 56 .0 and later. All Rights Reserved. Availability Available in Safari 1. 2011-07-12 | © 2011 Apple Inc. Available in iOS 1. Syntax <title> content </title> Discussion The text specified by content is displayed at the top of a browser window.0 and later. Availability Available in Safari 1. thead Defines a table’s header.

All Rights Reserved. but otherwise matches the style of the enclosing element. Consecutive table rows are placed vertically onscreen. Available in iOS 1. 57 . Defines a block of underlined text. u Deprecated. Table cells are usually enclosed by these rows.0 and later. Syntax <tt> content </tt> Discussion The text specified by content is displayed in a monospaced “teletype” style. Available in iOS 1. Syntax <tr> content </tr> Discussion This tag defines a row within a table.0 and later. Availability Available in Safari 1.0 and later.0 and later. Syntax <u> content </u> 2011-07-12 | © 2011 Apple Inc. tt Displays text in a “teletype” style. Styles should be more finely tuned using CSS instead of using HTML style tags.Supported HTML HTML Tags tr Defines a table row. Availability Available in Safari 1.

All Rights Reserved. Availability Available in Safari 1. The <ins> tag is more appropriate for this function.0 and later.0 and later. Availability Available in Safari 1. bulletted list. Syntax <var> content </var> Discussion This tag specifies a variable.0 and later. ul Specifies an unordered list. Availability Available in Safari 1. Within the bounds of this block. Syntax <ul> content </ul> Discussion This tag specifies an unordered.0 and later.0 and later. Available in iOS 1. Additionally. 2011-07-12 | © 2011 Apple Inc. This tag has been deprecated in the HTML 4. The text enclosed within the tags is italicized. underlined text should not be used as it may be confused with actual hyperlinks. Available in iOS 1. var Specifies a variable. Styles should be more finely tuned using CSS instead of using HTML style tags. Available in iOS 1.01 standard.Supported HTML HTML Tags Discussion The content specified by content is underlined.0 and later. list items should be defined using the <li> tag. 58 .

59 . Availability Available in Safari 3. Omit to prevent autoplay. Syntax <wbr>content</wbr> 2011-07-12 | © 2011 Apple Inc. The video element supports inclusion of source elements to provide multiple versions of a video clip encoded with different codecs. All Rights Reserved. at different bit rates.Boolean attribute. wbr Specifies a block in which line breaks are permitted. Available in iOS 3. These source elements must be the first elements inside the video element before any fallback content.27" playcount="4" <!-.07" <!-. --> start="00:00:00.png" autoplay="autoplay" <!-. and so on.19" end="00:00:00. See “source” (page 50) for more information.7 seconds --> loopend="00:00:00.00" loopstart="00:00:00.1 and later.0 and later.Supported HTML HTML Tags video Embeds video into a webpage.play 4x --> controls="true" width="640" height="480" > Discussion The video element may contain fallback content for browsers that do not support this element. Syntax <video src="url" poster="freezeframe. Any content enclosed within the video element is ignored by browsers that support the video element (but it must be valid HTML).

multiple spaces. specifically line breaks. This block is also prefaced with a newline.0 and later. Available with limited support on iOS 1. Availability Available in Safari 1.Supported HTML HTML Tags Discussion Within a <nobr> block (in which line breaks are disabled).0 and later. In Safari.0 and later. and the greater-than and less-than symbols that accompany HTML tags. Syntax <xmp>content</xmp> Discussion This tag preserves the formatting of the block of text specified by content.0 and later. xmp Represents a block of literal text. any content specified by content is permitted to use line breaks. Availability Available in Safari 1. Available in iOS 1. consider using the <pre> tag instead. 60 . text enclosed in this element is also rendered in a monospace “teletype” font. All Rights Reserved. 2011-07-12 | © 2011 Apple Inc. The line breaks themselves must still be requested using the <br> tag. This tag is not well-supported and may cause unintended behavior in Safari.

Some attributes are also marked as deprecated.0 and later. are not guaranteed to be supported in the future. Supported Attributes If an attribute is not listed here. All Rights Reserved. The “Related Tags” section of each attribute links to the elements that the attribute directly applies to. it is not supported by Safari and WebKit. 61 . Related Tags “form” (page 31) “input” (page 35) 2011-07-12 | © 2011 Apple Inc. Available in iOS 1.0 and later. the “Related Tags” section is omitted. Related Tags “td” (page 54) “th” (page 55) Availability Available in Safari 1. because they are no longer supported by the HTML specification. accept Specifies the supported MIME types for a form.Supported Attributes Attributes that are supported by Safari and WebKit are described here. If an attribute applies to the vast majority of elements. which means they are supported by Safari but. abbr Specifies the abbreviation for a table header cell.

Related Tags “a” (page 17) “area” (page 19) “button” (page 24) “input” (page 35) “label” (page 38) “legend” (page 38) “textarea” (page 54) Availability Available in Safari 1. accept-charset Specifies the supported character sets for a form. 62 .0 and later. Related Tags “form” (page 31) Availability Available in Safari 1.0 and later. action Specifies the URL of a form processor (for example. accesskey Specifies the access key for accessibility/screen reading. Available in iOS 1.Supported Attributes Supported Attributes Availability Available in Safari 1. All Rights Reserved.0 and later. a CGI script) 2011-07-12 | © 2011 Apple Inc.0 and later.0 and later.0 and later. Available in iOS 1. Available in iOS 1.

alt Provides a short description of an image. Deprecated in HTML 4.0 and later.01 (use CSS styling instead). alink Specifies the color of a currently active hyperlink.0 and later. align Aligns inline elements within an element.0 and later. Available in iOS 1.0 and later. Available in iOS 1. Related Tags “body” (page 23) Availability Available in Safari 1. 63 . area. All Rights Reserved. Deprecated in HTML 4. or input type. Related Tags “applet” (page 19) “area” (page 19) “img (or image)” (page 35) “input” (page 35) 2011-07-12 | © 2011 Apple Inc. Availability Available in Safari 1.Supported Attributes Supported Attributes Related Tags “form” (page 31) Availability Available in Safari 1.01 (use CSS styling instead). Available in iOS 1.0 and later.0 and later.

is selected.0 and later.0 and later. All Rights Reserved. archive Specifies a comma-separated list of Java archive URLs.0 and later. such as a heading. Available in iOS 1.0 and later. Related Tags “div” (page 28) “span” (page 51) Availability Available in Safari 4.Supported Attributes Supported Attributes Availability Available in Safari 1. such as a radio button or a checkbox. 64 . aria-checked Indicates whether an ARIA-enabled element.0 and later. Related Tags “applet” (page 19) “object” (page 44) Availability Available in Safari 1. Available in iOS 1.0 and later. 2011-07-12 | © 2011 Apple Inc. Related Tags “div” (page 28) “span” (page 51) Availability Available in Safari 4. aria-level Indicates the hierarchical level of an ARIA-enabled structural element.

aria-valuemin Indicates the minimum value of an ARIA-enabled element with a range. Related Tags “div” (page 28) “span” (page 51) Availability Available in Safari 4.0 and later.0 and later. Related Tags “div” (page 28) “span” (page 51) Availability Available in Safari 4. such as a progress bar. Related Tags “div” (page 28) “span” (page 51) Availability Available in Safari 4. aria-valuenow Indicates the current value of an ARIA-enabled element with a range. such as a progress bar. All Rights Reserved. 65 . such as a progress bar.Supported Attributes Supported Attributes aria-pressed Indicates the state of an ARIA-enabled toggle button.0 and later. aria-valuemax Indicates the maximum value of an ARIA-enabled element with a range. Related Tags “div” (page 28) “span” (page 51) 2011-07-12 | © 2011 Apple Inc.

If the autocapitalize attribute is not present.1. words Capitalize the first letter of each word automatically. 66 . autocapitalize Specifies the auto-capitalization behavior of text elements. Possible values are: none Do not capitalize any text automatically.0. Available in iOS 5. the default value is sentences for <form> and none for <input> elements with type set to password as in <input type="password">. the autocapitalize attribute values for the first-name and last-name input elements default to words which is inherited from the <form> element: <form autocapitalize="words"> First Name: <input name="first-name"> 2011-07-12 | © 2011 Apple Inc. Available in iOS 5. Available in iOS 1. All Rights Reserved. the default value is inherited from the enclosing <form> element.0 on Use sentences instead.0 and later. in the following code fragment.1.0 and later. Deprecated in iOS 5.Supported Attributes Supported Attributes Availability Available in Safari 4. Available in iOS 5. For example. Available in iOS 5. sentences Capitalize the first letter of each sentence automatically. For all other form controls. Deprecated in iOS 5.1 and later. off Use none instead.0 and later.0 and later. If the autocapitalize attribute is present but no value is specified (as in <input autocapitalize>). characters Capitalize all characters automatically. Available in iOS 1.0 and later.1 and later. the default value is sentences.

If on. Availability Available in iOS 1.1. autocorrect If off.0 and later. these properties returned a Boolean value. If on.1 and later. returns a DOMString object. autocomplete If off.1 and later. activates automatic completion for the element. 2011-07-12 | © 2011 Apple Inc.1. Related Tags “input” (page 35) Availability Available in iOS 1. HTMLInputElement. Prior to iOS 5. Support Level Apple extension. Related Tags “input” (page 35) Availability Available in Safari 1. and HTMLTextAreaElement.1 and later. activates automatic correction for the element. All Rights Reserved. deactivates automatic correction for a form or input element. 67 .0.Supported Attributes Supported Attributes Last Name: <input name="last-name"> State: <input name="state" autocapitalize="characters"> Username: <input name="username" autocapitalize="none"> Comment: <textarea name="comment" autocapitalize="sentences"></textarea> </form> Note: The autocapitalize attribute on HTMLFormElement.1. deactivates automatic completion for an input element. Available in iOS 1.

so prior searches can be saved. Support Level Apple extension. Related Tags “audio” (page 20) “video” (page 59) Availability Available in Safari 3. 68 .0 and later.1 and later. autoplay Indicates that a media element should begin playing as soon as it is loaded. axis Specifies a comma-separated list of category names for a table cell or table header cell. 2011-07-12 | © 2011 Apple Inc.3 and later.0 and later.Supported Attributes Supported Attributes Support Level Apple extension. Related Tags “input” (page 35) Availability Available in Safari 1. All Rights Reserved. Related Tags “td” (page 54) “th” (page 55) Availability Available in Safari 1. autosave Specifies an autosave name for a search field. Available in iOS 1.

Related Tags “marquee” (page 40) Availability Available in Safari 1.01 (use CSS styling instead). 69 . bgcolor Sets the background color of an element.0 and later.Supported Attributes Supported Attributes background Specifies a background image. Related Tags “body” (page 23) Availability Available in Safari 1. Available in iOS 1. Related Tags “body” (page 23) “table” (page 53) “td” (page 54) “th” (page 55) “tr” (page 57) Availability Available in Safari 1. Available in iOS 1.01 (use CSS styling instead). or alternate to scroll back and forth. Deprecated in HTML 4.0 and later. All Rights Reserved. Available in iOS 1.0 and later.0 and later. 2011-07-12 | © 2011 Apple Inc. behavior Used for the marquee element. slide to slide it to the edge and start again at the beginning. Can be set to scroll to continually scroll.0 and later. Deprecated in HTML 4.2 and later.

All Rights Reserved.0 and later. 70 . which will lock the background in place as the page scrolls. Related Tags “body” (page 23) Availability Available in Safari 1. has no effect in Safari. The only value available is “fixed” . Available in iOS 1.0 and later.0 and later. 2011-07-12 | © 2011 Apple Inc.0 and later. border Sets the visible border width for a table.Supported Attributes Supported Attributes bgproperties Sets the background style if a background image has been set. Available in iOS 1.0 and later. cellpadding Defines the pixel spacing within table cells. Related Tags “img (or image)” (page 35) “object” (page 44) Availability Available in Safari 1. Available in iOS 1.0 and later. Related Tags “table” (page 53) Availability Available in Safari 1. bordercolor Defines the color of a table border.

challenge Provides an arbitrary string that acts as the challenge for a keygen. cellspacing Defines the pixel spacing between cells.0 and later. Related Tags “col” (page 26) “colgroup” (page 26) “tbody” (page 53) “td” (page 54) 2011-07-12 | © 2011 Apple Inc. Available in iOS 1. The default is a decimal point.Supported Attributes Supported Attributes Related Tags “table” (page 53) Availability Available in Safari 1.0 and later. char Defines the axis of alignment for a block of text (for example.0 and later.0 and later.0 and later. All Rights Reserved. Related Tags “keygen” (page 37) Availability Available in Safari 1. Available in iOS 1. the decimal point in an English monetary value).0 and later. Related Tags “table” (page 53) Availability Available in Safari 1. 71 . Available in iOS 1.

Supported Attributes Supported Attributes “tfoot” (page 55) “th” (page 55) “thead” (page 56) “tr” (page 57) Availability Available in Safari 1. All Rights Reserved. 72 . Available in iOS 1.0 and later. charset Defines the character encoding style of a given linked resource. Related Tags “a” (page 17) “link” (page 39) “script” (page 48) 2011-07-12 | © 2011 Apple Inc. Related Tags “col” (page 26) “colgroup” (page 26) “tbody” (page 53) “td” (page 54) “tfoot” (page 55) “th” (page 55) “thead” (page 56) “tr” (page 57) Availability Available in Safari 1. charoff Specifies the offset to the alignment character specified by the char attribute.0 and later.0 and later. Available in iOS 1.0 and later.

2011-07-12 | © 2011 Apple Inc. Available in iOS 1. Availability Available in Safari 1. checked Indicates that a checkbox element should show up as checked in a form. cite Specifies the URL for the source of a citation. Available in iOS 1. All Rights Reserved.Supported Attributes Supported Attributes Availability Available in Safari 1.0 and later. Available in iOS 1. Related Tags “blockquote” (page 22) “q” (page 47) Availability Available in Safari 1. its absence indicates it is not. or a string explaining the reason for a change.0 and later. Discussion This attribute does not require a value: its presence indicates the box is checked.0 and later.0 and later. Available in iOS 1.0 and later.3 and later. 73 . cellborder Sets the width of the border of an individual table cell.0 and later. Related Tags “input” (page 35) Availability Available in Safari 1.0 and later.

Related Tags “br” (page 23) Availability Available in Safari 1. 2011-07-12 | © 2011 Apple Inc. Availability Available in Safari 1. clear Specifies the flow direction of text around a line break.0 and later. Deprecated in HTML 4.0 and later. All Rights Reserved. 74 .01 (use CSS styling instead). Deprecated in HTML 4.0 and later. Related Tags “applet” (page 19) Availability Available in Safari 1. Related Tags “object” (page 44) Availability Available in Safari 1. Available in iOS 1.Supported Attributes Supported Attributes class Space-separated list of CSS classes defining the style for an element.0 and later.0 and later. classid Specifies the URL of the implementation for an embedded object. along with the applet tag. Available in iOS 1.0 and later. Available in iOS 1.01. code Defines the class file for an applet specified with the applet tag.0 and later.

data file. color Defines the text color for font elements.Supported Attributes Supported Attributes codebase Defines the base URL for a class ID.0 and later.01 (use CSS styling instead). codetype Defines the content-type for the code embedded by the object tag.0 and later. or archive specified with the object tag. Related Tags “object” (page 44) Availability Available in Safari 1. Related Tags “basefont” (page 21) “font” (page 31) Availability Available in Safari 1. but not for the object tag. cols Defines the number of columns in a text area or frame set.0 and later.0 and later.01 for the applet tag.0 and later. Available in iOS 1. Deprecated in HTML 4. All Rights Reserved. Available in iOS 1. Related Tags “object” (page 44) Availability Available in Safari 1. 75 . Deprecated in HTML 4. Available in iOS 1.0 and later. 2011-07-12 | © 2011 Apple Inc.

Available in iOS 1.0 and later. compact Compresses the space between elements in a list or menu. Related Tags “dir” (page 28) “dl” (page 29) “menu” (page 41) “ol” (page 44) “ul” (page 58) Availability Available in Safari 1. Available in iOS 1. Related Tags “td” (page 54) “th” (page 55) Availability Available in Safari 1. Available in iOS 1. Deprecated in HTML 4.01 (use CSS styling instead).Supported Attributes Supported Attributes Related Tags “frameset” (page 32) “textarea” (page 54) Availability Available in Safari 1. 76 .0 and later.0 and later. All Rights Reserved. 2011-07-12 | © 2011 Apple Inc.0 and later. colspan Defines the number of columns spanned by an individual column definition.0 and later.0 and later.

Availability Available in Safari 1. 77 . the media element includes controls.3 and later. Related Tags “img (or image)” (page 35) Availability Available in Safari 1. the element can be edited on the fly.2 and later. All Rights Reserved. if false. contenteditable If true.Supported Attributes Supported Attributes composite Specifies how an image gets composited onto a Dashboard widget. such as a play button. Available in iOS 1.0 and later.0 and later. Related Tags “audio” (page 20) “video” (page 59) 2011-07-12 | © 2011 Apple Inc. it cannot. controls If true.0 and later.0 and later. content Specifies the content for a given meta key. Related Tags “meta” (page 41) Availability Available in Safari 1. Support Level Apple extension. Available in iOS 1. it does not. if false. Available in iOS 5.

data Specifies a URL to data required by an embedded object element.1 and later. Available in iOS 1. Related Tags “object” (page 44) Availability Available in Safari 1. datetime Specifies the date and time of a change. Available in iOS 1.0 and later.0 and later.0 and later. All Rights Reserved.Supported Attributes Supported Attributes Availability Available in Safari 3.0 and later. Related Tags “del” (page 27) “ins” (page 36) Availability Available in Safari 1. Uses the ISO date format.0 and later. 78 . 2011-07-12 | © 2011 Apple Inc. Available in iOS 1. coords Specifies a comma-separated list of lengths for the area element or for client-side image maps. Related Tags “area” (page 19) Availability Available in Safari 1. Discussion Used for the del and ins elements.0 and later.

Supported Attributes Supported Attributes

declare
Added alone to an object element’s definition. Tells the object to declare but not instantiate itself. Related Tags
“object” (page 44)

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

defer
Added alone to a script element’s definition. Tells the script to defer execution. Related Tags
“script” (page 48)

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

dir
Specifies the direction (ltr/rtl) of text within an element. Availability Available in Safari 1.0 and later. Available in iOS 1.0 and later.

direction
Specifies the scrolling direction for the marquee element. Can be set to “left” or “right” . Related Tags
“marquee” (page 40)

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

2011-07-12 | © 2011 Apple Inc. All Rights Reserved.

79

Supported Attributes Supported Attributes

disabled
Added alone to an input type’s definition. Disables (greys out) the element. Related Tags
“button” (page 24) “input” (page 35) “optgroup” (page 45) “option” (page 45) “select” (page 49) “textarea” (page 54)

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

enctype
Defines the MIME content encoding type for a form. Related Tags
“form” (page 31)

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

end
Specifies the time at which an audio or video element will stop playing. If this attribute is not specified, the media element will play to completion. Related Tags
“audio” (page 20) “video” (page 59)

Availability Available in Safari 3.1 and later.

2011-07-12 | © 2011 Apple Inc. All Rights Reserved.

80

Supported Attributes Supported Attributes

face
Comma-separated list of font names. Deprecated in HTML 4.01 (use CSS styling instead). Related Tags
“basefont” (page 21) “font” (page 31)

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

for
Specifies the identifier of the control the label is relevant to. Related Tags
“label” (page 38)

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

frame
Specifies which sides of a table frame should be shown. Discussion Possible values are: void (none), above , below , hsides (top and bottom), vsides (right and left), rhs (right hand side), lhs (left hand side), box (all four sides), and border (all four sides). Related Tags
“table” (page 53)

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

2011-07-12 | © 2011 Apple Inc. All Rights Reserved.

81

Supported Attributes Supported Attributes

frameborder
Specifies whether or not to display a frameborder. Can be set to “1” or “0” . Related Tags
“frame” (page 32) “iframe” (page 35)

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

headers
Specifies a space-separated list of identifiers of table header cells. Related Tags
“td” (page 54) “th” (page 55)

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

height
Specifies the height of the element. Deprecated in HTML 4.01 for applets and table elements. Related Tags
“applet” (page 19) “iframe” (page 35) “img (or image)” (page 35) “object” (page 44) “td” (page 54) “th” (page 55) “video” (page 59)

2011-07-12 | © 2011 Apple Inc. All Rights Reserved.

82

Supported Attributes Supported Attributes

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

hidden
If true, the embedded object is hidden onscreen; if false, it is not. Related Tags
“embed” (page 30)

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

href
Specifies the URL for any kind of link or area definition. Related Tags
“a” (page 17) “area” (page 19) “base” (page 21) “link” (page 39)

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

hreflang
Specifies the language of the resource linked to by the element’s href attribute. Related Tags
“a” (page 17) “link” (page 39)

2011-07-12 | © 2011 Apple Inc. All Rights Reserved.

83

Related Tags “meta” (page 41) Availability Available in Safari 1.0 and later. Related Tags “applet” (page 19) “img (or image)” (page 35) “object” (page 44) Availability Available in Safari 1.0 and later. Available in iOS 1. Available in iOS 1. 84 .0 and later. Available in iOS 1.0 and later. http-equiv Used in the meta element. All Rights Reserved.0 and later. Available in iOS 1.Supported Attributes Supported Attributes Availability Available in Safari 1. hspace Specifies the pixel size of the horizontal spacing surrounding the element.0 and later. Deprecated in HTML 4.0 and later. 2011-07-12 | © 2011 Apple Inc. id Specifies a unique identifier for an element. Availability Available in Safari 1. Contains some kind of information about the header of the page.01 (use CSS styling instead).0 and later.

Related Tags “img (or image)” (page 35) “input” (page 35) Availability Available in Safari 1.0 and later. keytype Specifies the key type for the keygen element. Support Level Apple extension. Related Tags “input” (page 35) Availability Available in Safari 1.0 and later.Supported Attributes Supported Attributes incremental Specifies whether or not the “search” input type should perform the search as the user is typing. Can be set to RSA or DSA. 85 . Available in iOS 1.0 and later. 2011-07-12 | © 2011 Apple Inc. Related Tags “keygen” (page 37) Availability Available in Safari 1.2 and later.3 and later. Available in iOS 1. All Rights Reserved. Indicate that the element corresponds to a server-side image map. label Specifies the label for options or option groups within a pull-down menu. ismap Added alone to an image or input element.

Related Tags “body” (page 23) Availability Available in Safari 1. Specifies the left margin of the page content. 86 . Available in iOS 1. 2011-07-12 | © 2011 Apple Inc.Supported Attributes Supported Attributes Related Tags “optgroup” (page 45) “option” (page 45) Availability Available in Safari 1. lang Specifies the base language for the element’s attributes and textual content.0 and later. Related Tags “script” (page 48) Availability Available in Safari 1. Deprecated in HTML 4. Available in iOS 1.0 and later. language Specifies the language of a script element.0 and later. leftmargin Used in the body element. Availability Available in Safari 1.0 and later. Values are standard two-letter language codes. All Rights Reserved. Available in iOS 1.0 and later. Available in iOS 1.0 and later.0 and later.0 and later.01.

loop Specifies the number of times a media element (movie or sound) will loop. Augments the alt attribute for an element.0 and later.0 and later.01 (use CSS styling instead). longdesc Long textual description for images and frames. All Rights Reserved. Available in iOS 1. Related Tags “link” (page 39) Availability Available in Safari 1. 2011-07-12 | © 2011 Apple Inc.0 and later. Also specifies the number of times a marquee element will loop. 87 . Available in iOS 1.2 and later. Available in iOS 1. Related Tags “embed” (page 30) “marquee” (page 40) “object” (page 44) Availability Available in Safari 1.Supported Attributes Supported Attributes link Color of an unvisited hyperlink. Deprecated in HTML 4. Related Tags “frame” (page 32) “iframe” (page 35) “img (or image)” (page 35) Availability Available in Safari 1.0 and later.0 and later.

All Rights Reserved. Related Tags “audio” (page 20) “video” (page 59) Availability Available in Safari 3. the value for this attribute is equal to the value for the end attribute. JavaScript. By default. the value for this attribute is equal to the value for the start attribute. manifest Specifies the relative path to the application cache manifest file that specifies the resources—such as HTML.1 and later.1 and later. and image files—to download and store in the application cache.Supported Attributes Supported Attributes loopend Specifies the time at which an audio or video element will loop back to the time specified by the loopstart attribute. loopstart Specifies the time to which an audio or video element will return when it loops. By default. Discussion Looping occurs only if the playcount attribute for the element is set to a value higher than 1. Discussion Looping occurs only if the playcount attribute for the element is set to a value higher than 1. CSS. Related Tags “html” (page 34) 2011-07-12 | © 2011 Apple Inc. 88 . Related Tags “audio” (page 20) “video” (page 59) Availability Available in Safari 3.

marginheight Specifies the height of the margins in a frame.0 and later. Related Tags “frame” (page 32) “iframe” (page 35) Availability Available in Safari 1. max Same as the maxlength attribute.0 and later. Related Tags “frame” (page 32) “iframe” (page 35) Availability Available in Safari 1.0 and later. 89 . Related Tags “input” (page 35) Availability Available in Safari 1. Available in iOS 2.0 and later. Available in iOS 1.0 and later.3 and later. 2011-07-12 | © 2011 Apple Inc.Supported Attributes Supported Attributes Availability Available in Safari 4.0 and later. marginwidth Specifies the width of the margins in a frame.2 and later. Available in iOS 1. All Rights Reserved. Available in iOS 1.

Related Tags “link” (page 39) “source” (page 50) “style” (page 52) 2011-07-12 | © 2011 Apple Inc.Supported Attributes Supported Attributes maxlength Specifies the maximum input length for a text input field in characters. handheld for handheld devices. Tells the script to allow the applet access to the JavaScript scripting objects. media Defines the media type that the element is designed for.0 and later.2 and later. Related Tags “applet” (page 19) Availability Available in Safari 1. or all for all devices. All Rights Reserved. braille for braille devices. 90 . but the attribute can also be set to tty for a fixed-pitch device. Related Tags “input” (page 35) Availability Available in Safari 1. projection for projectors. Discussion The default value is screen. Available in iOS 1. print for printed material. aural for speech synthesizers.0 and later. tv for low-resolution televisions. The media attribute supports all media queries supported by the @media CSS rule.0 and later. Available in iOS 1. mayscript Added alone to an applet element’s definition.

which can be used in a variety of ways.0 and later. name Specifies the name of the element. Related Tags “select” (page 49) Availability Available in Safari 1.3 and later. the element will permit multiple selections.0 and later. Related Tags “input” (page 35) Availability Available in Safari 1.0 and later. Related Tags “form” (page 31) Availability Available in Safari 1.0 and later.0 and later. If present. Available in iOS 1. All Rights Reserved. multiple Added alone to a select element’s definition. method Specifies the form submission method.0 and later. Available in iOS 1. either POST or GET. Available in iOS 1.Supported Attributes Supported Attributes Availability Available in Safari 1. Available in iOS 1. min Specifies the minimum input length for a text field. 91 .0 and later. 2011-07-12 | © 2011 Apple Inc.

nosave Legacy attribute. Available in iOS 1. If present. noresize Added alone to a frame element’s definition.0 and later.0 and later.0 and later.” Deprecated in HTML 4.0 and later. 2011-07-12 | © 2011 Apple Inc.Supported Attributes Supported Attributes Availability Available in Safari 1. the frames cannot be resized. Related Tags “area” (page 19) Availability Available in Safari 1. If present. Has no effect in Safari. If present. the rule is drawn as a single line and not as a “groove. noshade Added alone to an hr element’s definition. Available in iOS 1.01 (use CSS styling instead). the area has no particular action assigned to it.0 and later. Available in iOS 1. nohref Added alone to an area element’s definition. Available in iOS 1.0 and later.0 and later.0 and later. 92 . Availability Available in Safari 1. All Rights Reserved. Related Tags “frame” (page 32) Availability Available in Safari 1.

Related Tags “img (or image)” (page 35) 2011-07-12 | © 2011 Apple Inc. Related Tags “td” (page 54) “th” (page 55) Availability Available in Safari 1.01 along with the applet element. Available in iOS 1.01 (use CSS styling instead). Related Tags “applet” (page 19) Availability Available in Safari 1. All Rights Reserved. Available in iOS 1.0 and later. Available in iOS 1. nowrap Added alone to a table cell’s definition. 93 . Deprecated in HTML 4. onabort JavaScript delegate. The code specified by this attribute is called when the image element it is assigned to is aborted during load.0 and later.Supported Attributes Supported Attributes Related Tags “hr” (page 33) Availability Available in Safari 1. object Specifies the URL of a serialized applet in an applet element.0 and later.0 and later. Suppresses word wrap if present. Deprecated in HTML 4.0 and later.0 and later.

onbeforecut JavaScript delegate. onblur JavaScript delegate. Availability Available in Safari 1. 2011-07-12 | © 2011 Apple Inc. Available in iOS 1. Availability Available in Safari 1.3 and later. Availability Available in Safari 1. Availability Available in Safari 1. onbeforecopy JavaScript delegate.3 and later. The code specified by this attribute is called before the associated element is copied. The code specified by this attribute is called when the associated element loses focus.0 and later. The code specified by this attribute is called before the associated element is cut.3 and later.3 and later. 94 .0 and later. onbeforepaste JavaScript delegate. onbeforeunload JavaScript delegate. The code specified by this attribute is called before the associated element has something pasted into it. The code specified by this attribute is called before the associated element is unloaded from the page.Supported Attributes Supported Attributes Availability Available in Safari 1. All Rights Reserved.

Availability Available in Safari 1. 95 . 2011-07-12 | © 2011 Apple Inc. The code specified by this attribute is called when the associated element changes its value.Supported Attributes Supported Attributes Availability Available in Safari 1. onclick JavaScript delegate. The code specified by this attribute is called when the associated element is clicked. Availability Available in Safari 1. onchange JavaScript delegate. oncontextmenu JavaScript delegate. oncut JavaScript delegate. Availability Available in Safari 1. The code specified by this attribute is called when the associated element is copied.0 and later. Available in iOS 1.0 and later. oncopy JavaScript delegate.0 and later.0 and later. Available in iOS 1.0 and later. All Rights Reserved. The code specified by this attribute is called when the associated element is right-clicked or when the mouse button is held down long enough to generate a contextual menu. Available in iOS 1. The code specified by this attribute is called when the associated element is cut.0 and later. Availability Available in Safari 1.1 and later.3 and later.

2011-07-12 | © 2011 Apple Inc.3 and later. Availability Available in Safari 1. Availability Available in Safari 1. Availability Available in Safari 1. The code specified by this attribute is called when a drag has left the associated element. ondragenter JavaScript delegate. ondragend JavaScript delegate. The code specified by this attribute is called when the associated element is done being dragged. 96 .0 and later. The code specified by this attribute is called when the associated element is double-clicked. Availability Available in Safari 1. All Rights Reserved. The code specified by this attribute is called when the associated element is dragged.3 and later. ondrag JavaScript delegate.Supported Attributes Supported Attributes Availability Available in Safari 1. The code specified by this attribute is called when a drag has entered the associated element.3 and later.3 and later. ondblclick JavaScript delegate. ondragleave JavaScript delegate.3 and later. Availability Available in Safari 1.

3 and later. Availability Available in Safari 1.0 and later. The code specified by this attribute is called when a drag is over the associated element. All Rights Reserved. Availability Available in Safari 1.0 and later. The code specified by this attribute is called when the associated element gets focus. 97 . onfocus JavaScript delegate.3 and later. Availability Available in Safari 1. Available in iOS 1. The code specified by this attribute is called when the associated element has an error in loading. ondragstart JavaScript delegate. Available in iOS 1. Availability Available in Safari 1. 2011-07-12 | © 2011 Apple Inc.Supported Attributes Supported Attributes ondragover JavaScript delegate. Availability Available in Safari 1. The code specified by this attribute is called when the associated element is dropped.3 and later.0 and later.0 and later. The code specified by this attribute is called when the associated element has started to be dragged. onerror JavaScript delegate. ondrop JavaScript delegate.

ongestureend Specifies the JavaScript method to invoke when the gesture ends (when there are 1 or 0 fingers touching the surface).Supported Attributes Supported Attributes ongesturechange Specifies the JavaScript method to invoke when fingers are moved during a gesture. All Rights Reserved.3 and later. Support Level Apple extension. ongesturestart Specifies the JavaScript method to invoke when two or more fingers touch the surface. Support Level Apple extension. 2011-07-12 | © 2011 Apple Inc. Availability Available in iOS 2. Availability Available in iOS 2.0 and later.0 and later. oninput JavaScript delegate.0 and later. The code specified by this attribute is called when text is entered into the associated element. Availability Available in iOS 2. Available in iOS 1. 98 . Availability Available in Safari 1.0 and later. Support Level Apple extension.

Available in iOS 1.0 and later.0 and later. onkeyup JavaScript delegate. Available in iOS 1.Supported Attributes Supported Attributes onkeydown JavaScript delegate. onkeypress JavaScript delegate. Availability Available in Safari 1. The code specified by this attribute is called when a key is pressed over the associated element.0 and later. All Rights Reserved. onload JavaScript delegate.0 and later. 2011-07-12 | © 2011 Apple Inc.0 and later. Availability Available in Safari 1.0 and later. Availability Available in Safari 1. The code specified by this attribute is called when a key is released over the associated element. 99 . Available in iOS 1. onmousedown JavaScript delegate. Availability Available in Safari 1. The code specified by this attribute is called when the mouse button is pressed over the associated element. The code specified by this attribute is called when the associated element finishes loading.0 and later. The code specified by this attribute is called when a key is pressed and released over the associated element.0 and later. Available in iOS 1.

Availability Available in Safari 1.0 and later. Available in iOS 1.0 and later. Available in iOS 1.0 and later. onmouseup JavaScript delegate.0 and later. Available in iOS 1. The code specified by this attribute is called when a key is moved within the associated element. Available in iOS 1. 2011-07-12 | © 2011 Apple Inc. onmouseout JavaScript delegate.0 and later.Supported Attributes Supported Attributes Availability Available in Safari 1. Availability Available in Safari 1.0 and later. The code specified by this attribute is called when the mouse leaves the associated element. 100 . All Rights Reserved. Availability Available in Safari 1.0 and later.0 and later. onmouseover JavaScript delegate. Available in iOS 1.0 and later.0 and later. The code specified by this attribute is called when the mouse button is released over the associated element. Availability Available in Safari 1. The code specified by this attribute is called when the mouse is over the associated element. onmousemove JavaScript delegate.

Available in iOS 1. The code specified by this attribute is called when the mouse wheel button is rotated.1 and later.0 and later. Availability Available in Safari 1. onresize JavaScript delegate. onpaste JavaScript delegate. 2011-07-12 | © 2011 Apple Inc. Available in iOS 1. onreset JavaScript delegate. The code specified by this attribute is called when the associated element is resized. All Rights Reserved. The code specified by this attribute is called when the associated form element is reset.0 and later.1.Supported Attributes Supported Attributes onmousewheel JavaScript delegate.3 and later.0 and later.0 and later. 101 . Availability Available in Safari 1. Availability Available in iOS 1. Available in iOS 1. Availability Available in Safari 1.0 and later.0 and later. Availability Available in Safari 1. The code specified by this attribute is called when the associated element is pasted. onorientationchange The JavaScript method to invoke when the orientation of the device changes.

The code specified by this attribute is called when the associated element is scrolled (a text box would use this. onselectstart JavaScript delegate. Availability Available in Safari 1. The code specified by this attribute is called when text within the associated element is selected. onsearch JavaScript delegate for the search input type. Support Level Apple extension. Availability Available in Safari 1. 2011-07-12 | © 2011 Apple Inc. Availability Available in Safari 1.Supported Attributes Supported Attributes onscroll JavaScript delegate. onsubmit JavaScript delegate. The code specified by this attribute is called when a search is performed. All Rights Reserved.3 and later. Available in iOS 1. Availability Available in Safari 1. The code specified by this attribute is called when the associated form element is submitted. for example). Available in iOS 1.0 and later. onselect JavaScript delegate.0 and later. 102 .2 and later.3 and later. You can use this to prevent selections. The code specified by this attribute is called when the associated element begins to be selected.0 and later.

0 and later. ontouchstart Specifies the JavaScript method to invoke when a finger for a given event touches the surface. Available in iOS 1. Support Level Apple extension. ontouchend Specifies the JavaScript method to invoke when a given event lifts from the surface. All Rights Reserved. ontouchcancel Specifies the JavaScript method to invoke when the system cancels tracking for the touch. Availability Available in iOS 2. Availability Available in iOS 2.0 and later.0 and later. ontouchmove Specifies the JavaScript method to invoke when a finger for a given event moves on the surface. Availability Available in iOS 2. Support Level Apple extension.Supported Attributes Supported Attributes Availability Available in Safari 1. 2011-07-12 | © 2011 Apple Inc.0 and later. Support Level Apple extension.0 and later.0 and later. 103 . Support Level Apple extension. Availability Available in iOS 2.

104 .3 and later. meaning the element will play only once. Available in iOS 1. Related Tags “img (or image)” (page 35) Availability Available in Safari 1. Useful for rollovers.0 and later.0 and later. Related Tags “input” (page 35) Availability Available in Safari 1.1 and later. oversrc Specifies the source of an image to be displayed when the mouse is over an element. Available in iOS 1. All Rights Reserved. The default value is 1.Supported Attributes Supported Attributes onunload JavaScript delegate. playcount Specifies the number of times an audio or video element will loop. Related Tags “audio” (page 20) “video” (page 59) 2011-07-12 | © 2011 Apple Inc.0 and later. Availability Available in iOS 2. placeholder Specifies the placeholder text displayed in light grey when the search input field is not currently in use. The code specified by this attribute is called when the associated element is unloaded from the page. Support Level Apple extension.

0 and later. except it links directly to the plug-in itself (in Java archive format). pluginurl Same as the pluginspage attribute. Available in iOS 1.0 and later. Available with limited support in iOS 1.Supported Attributes Supported Attributes Availability Available in Safari 3.0 and later. All Rights Reserved. pluginspage Same as the pluginpage attribute. Related Tags “embed” (page 30) Availability Available in Safari 1. pluginpage Specifies the URL of the page where visitors can find the plug-in required to display content embedded with the embed element.0 and later. Related Tags “embed” (page 30) Availability Available in Safari 1. 105 . This has been deprecated along with the embed element.0 and later. 2011-07-12 | © 2011 Apple Inc. Available with limited support in iOS 1.1 and later.0 and later. Related Tags “embed” (page 30) Availability Available in Safari 1. Available with limited support in iOS 1.0 and later.

Related Tags “isindex” (page 36) Availability Available in Safari 1. Available in iOS 1.0 and later.3 and later. precision Availability Available in Safari 1. prompt Specifies the textual prompt for the isindex element.0 and later. Related Tags “head” (page 33) Availability Available in Safari 1.1 and later. Available with limited support in iOS 1.Supported Attributes Supported Attributes poster Specifies the URL for an image to display while a video element is loading.0 and later. Deprecated in HTML 4. profile Specifies the URL to a file of meta data or a list of said files. 106 . Available in iOS 1. All Rights Reserved.0 and later. Related Tags “video” (page 59) Availability Available in Safari 3.01. 2011-07-12 | © 2011 Apple Inc. Available in iOS 1.0 and later.0 and later.

the textarea will not be editable. 107 .3 and later. results Specifies how many results should be returned by the search input type. rel Defines a relationship to another document. Support Level Apple extension. In other words.0 and later. Related Tags “textarea” (page 54) Availability Available in Safari 1. Available in iOS 1.Supported Attributes Supported Attributes readonly Added alone to a textarea’s definition.0 and later. This document relates to the URL specified by this property as rev. Related Tags “a” (page 17) “link” (page 39) Availability Available in Safari 1. 2011-07-12 | © 2011 Apple Inc. In other words.0 and later. rev Defines a relationship to another document. All Rights Reserved. Available in iOS 1.0 and later. The URL specified by this property relates to this document by rel. it is the next-order relation. Related Tags “input” (page 35) Availability Available in Safari 1. it is the reverse-order relation. If present.

0 and later. Available in iOS 1. Related Tags “frameset” (page 32) “textarea” (page 54) Availability Available in Safari 1. All Rights Reserved.0 and later. role Defines the WAI-ARIA accessibility role of a div or span element. rows Defines the number of rows in a textarea or frameset.Supported Attributes Supported Attributes Related Tags “a” (page 17) “link” (page 39) Availability Available in Safari 1. Related Tags “div” (page 28) “span” (page 51) Availability Available in Safari 4. Related Tags “td” (page 54) 2011-07-12 | © 2011 Apple Inc.0 and later.0 and later. See “Supported Accessibility Roles” (page 131) for more information. 108 .0 and later. rowspan Defines the number of rows spanned by an individual row definition. Available in iOS 1.

Possible values are row. Related Tags “table” (page 53) Availability Available in Safari 1.Supported Attributes Supported Attributes “th” (page 55) Availability Available in Safari 1. scope Specifies the scope handled by a table’s header cells.0 and later. All Rights Reserved. rowgroup. rows.0 and later. 109 .0 and later. Its potential values are none. Available in iOS 1.0 and later. Available in iOS 1. col. Related Tags “td” (page 54) “th” (page 55) 2011-07-12 | © 2011 Apple Inc.0 and later. and colgroup. groups. and all. cols. Available in iOS 1. rules Specifies which rulings to show for a table element. scheme Defines the scheme to be used to interpret a meta value.0 and later. Related Tags “meta” (page 41) Availability Available in Safari 1.

scrolldelay Specifies the number of milliseconds that a marquee element will delay between successive redraws of its onscreen view.0 and later.0 and later. no will never show the scrollbars. scrollamount Specifies the number of pixels that a marquee element will scroll between successive redraws of its onscreen view. Related Tags “marquee” (page 40) Availability Available in Safari 1. Available in iOS 1. Related Tags “frame” (page 32) “iframe” (page 35) 2011-07-12 | © 2011 Apple Inc.0 and later.Supported Attributes Supported Attributes Availability Available in Safari 1.2 and later.2 and later. and auto will show the scrollbars only if the content needs to scroll (this is the default). 110 . Available in iOS 1. scrolling Specifies whether or not a frame or iframe element should have scrollbars. Discussion Setting this property to yes will always show the scrollbars.0 and later. All Rights Reserved. Available in iOS 1. Related Tags “marquee” (page 40) Availability Available in Safari 1.

or poly. circle. Related Tags “option” (page 45) Availability Available in Safari 1. selected Added alone to an option definition. Related Tags “a” (page 17) “area” (page 19) Availability Available in Safari 1.0 and later.01 (use CSS styling instead). If present.Supported Attributes Supported Attributes Availability Available in Safari 1. Related Tags “basefont” (page 21) “font” (page 31) “hr” (page 33) “input” (page 35) “select” (page 49) 2011-07-12 | © 2011 Apple Inc.0 and later. Available in iOS 1.0 and later.0 and later. Available in iOS 1. All Rights Reserved. Deprecated in HTML 4. the option with this property is selected in the list. rect. Can take the form of default. size Defines the physical size of a variety of inputs and fonts. Available in iOS 1. shape Defines the shape of an area element or a client-side image map.0 and later. 111 .0 and later.

span Specifies the number of columns that a given col or colgroup definition will span.0 and later. src Specifies a URL for an external file or resource. Available in iOS 1.0 and later. Available in iOS 1. 112 .0 and later.0 and later.0 and later.Supported Attributes Supported Attributes Availability Available in Safari 1. standby Defines a message to show while an object is being loaded within an object definition. Available in iOS 1. 2011-07-12 | © 2011 Apple Inc. Related Tags “audio” (page 20) “frame” (page 32) “iframe” (page 35) “img (or image)” (page 35) “input” (page 35) “script” (page 48) “video” (page 59) Availability Available in Safari 1. Related Tags “col” (page 26) “colgroup” (page 26) Availability Available in Safari 1. All Rights Reserved.0 and later.

0 and later. use the class property.Supported Attributes Supported Attributes Related Tags “object” (page 44) Availability Available in Safari 1. The style definitions are placed inline with this property. Available in iOS 1. Available in iOS 1. 113 . the element starts at the beginning. summary Specifies a textual summary for a table of data. Related Tags “audio” (page 20) “ol” (page 44) “video” (page 59) Availability Available in Safari 1. start Specifies the time at which an audio or video element starts playing. Related Tags “table” (page 53) 2011-07-12 | © 2011 Apple Inc. Available in iOS 1. Availability Available in Safari 1.0 and later.01 (use CSS styling instead).0 and later. Also defines the starting sequence number for an ordered list. By default. To specify external styles (defined in external files or in a style element). All Rights Reserved. style Specifies CSS style information for the element.0 and later.0 and later.0 and later. This functionality is deprecated in HTML 4.

Available in iOS 1. unnamed window. Available in iOS 1. “_top” will load the document into the original window. Availability Available in Safari 1. target Defines the target window for a hyperlink. eliminating any existing frameset.0 and later. You should use CSS styling to define this property instead. tabindex Specifies the tab index for a hyperlink or input element.0 and later. All Rights Reserved. Can range from 0 to 32767.0 and later.0 and later. Related Tags “a” (page 17) “area” (page 19) “base” (page 21) “form” (page 31) “link” (page 39) 2011-07-12 | © 2011 Apple Inc. tableborder Specifies the width of a table’s border. Available in iOS 1. “_self” will load in the same frame that was clicked.Supported Attributes Supported Attributes Availability Available in Safari 1. the focus will follow this tabbing order. but the following values are built-in: “_blank” will load the clicked URL into a new.0 and later. Related Tags “table” (page 53) Availability Available in Safari 1. You can specify any target definition.3 and later. As a user tabs through a page. “_parent” will load into the parent frame of the frame that was clicked. 114 .

0 and later.0 and later.0 and later. 2011-07-12 | © 2011 Apple Inc. this will display a tool tip for the element with this value.01 (use CSS styling instead). Available in iOS 1.0 and later. topmargin Specifies the top margin of the page content. Available in iOS 1. Deprecated in HTML 4. In Safari. Related Tags “body” (page 23) Availability Available in Safari 1. Availability Available in Safari 1.0 and later.Supported Attributes Supported Attributes Availability Available in Safari 1.0 and later. truespeed Specifies whether or not a marquee operates at the true speed specified by its parameters.0 and later. 115 . All Rights Reserved. title Defines a title for the associated element. text Defines the page-wide text color in the body element. The default behavior will constrain the speed to certain minimum values of scroll delay and scroll amount. Available in iOS 1. Available in iOS 1.0 and later. Related Tags “body” (page 23) Availability Available in Safari 1.

0 and later. Related Tags “a” (page 17) “button” (page 24) “input” (page 35) “li” (page 39) “link” (page 39) “object” (page 44) “ol” (page 44) “param” (page 46) “script” (page 48) “style” (page 52) Availability Available in Safari 1. 116 . usemap Specifies the URL for an image map on a document. and input types for the input element. Related Tags “img (or image)” (page 35) “input” (page 35) 2011-07-12 | © 2011 Apple Inc. type Defines a textual content type for elements like scripts and objects. Available in iOS 1.0 and later.Supported Attributes Supported Attributes Related Tags “marquee” (page 40) Availability Available in Safari 1. “#myMap”) defined as a map element on the page. See the input types table below for possible values.2 and later. All Rights Reserved.0 and later. Available in iOS 1. Usually this is an anchor (for example.

0 and later. All Rights Reserved. Related Tags “col” (page 26) “colgroup” (page 26) “tbody” (page 53) “td” (page 54) “tfoot” (page 55) “th” (page 55) “thead” (page 56) “tr” (page 57) Availability Available in Safari 1. Related Tags “button” (page 24) “input” (page 35) “li” (page 39) “option” (page 45) “param” (page 46) 2011-07-12 | © 2011 Apple Inc. valign Specifies vertical alignment within a column or table element definition. For those elements that can display their values (such as text fields).0 and later. they will display this value onscreen. Otherwise the values are all available as form values when submitted.0 and later.0 and later. Available in iOS 1. Available in iOS 1.Supported Attributes Supported Attributes “object” (page 44) Availability Available in Safari 1. value Specifies the current value for an input type. 117 .

Deprecated in HTML 4. valuetype Specifies the value type for a param element within an object definition. Related Tags “body” (page 23) Availability Available in Safari 1.0 and later.0 and later. Available in iOS 1. use DOCTYPE declarations instead.0 and later. Deprecated in HTML 4. Can be data if the value is evaluated and passed as a string. 118 . vlink Color of an already-visited hyperlink. ref if the value is a URL and is unevaluated when passed. version Specifies the version of the HTML DTD used to verify the document. Available in iOS 1. Available in iOS 1.01.0 and later. Available in iOS 1.0 and later. All Rights Reserved. or object if the value is an identifier that refers to an object definition. 2011-07-12 | © 2011 Apple Inc.Supported Attributes Supported Attributes Availability Available in Safari 1.01 (use CSS styling instead).0 and later. Related Tags “html” (page 34) Availability Available in Safari 1.0 and later.0 and later. Related Tags “param” (page 46) Availability Available in Safari 1.

0 and later. (Enabled only in a UIWebView with the allowsInlineMediaPlayback property set to YES. Related Tags “video” (page 59) Availability Available in iOS 4.Supported Attributes Supported Attributes vspace Specifies the pixel size of the vertical spacing surrounding the element. width Specifies the height of the element. Deprecated in HTML 4. Related Tags “applet” (page 19) “img (or image)” (page 35) “object” (page 44) Availability Available in Safari 1. All Rights Reserved.01 (use CSS styling instead).01 for applets and table elements. webkit-playsinline Indicates that a video element should play in-line instead of full-screen. Deprecated in HTML 4. 119 . Available in iOS 1.0 and later.0 and later. Related Tags “applet” (page 19) “iframe” (page 35) “img (or image)” (page 35) “object” (page 44) “td” (page 54) “th” (page 55) “video” (page 59) 2011-07-12 | © 2011 Apple Inc.

wrap Defines the wrap style for a textarea.0 and later. 120 . hard to wrap with outputting carriage returns. Related Tags “textarea” (page 54) Availability Available in Safari 1.Supported Attributes Supported Attributes Availability Available in Safari 1. Available in iOS 1. Available in iOS 1.0 and later. and off to not wrap at all. All Rights Reserved.0 and later. Can be set to soft to wrap without outputting carriage returns to the field. 2011-07-12 | © 2011 Apple Inc.0 and later.

More versatile than a submit button. Available in iOS 1.Supported Input Values Supported values for the input tag are described here.0 and later.0 and later. 121 . All Rights Reserved. They can be specified using the type attribute of the input element. Availability Available in iOS 5. button A button input type. date An input control for specifying a date value. Available in iOS 1. The user can select a month. Input Type Values Safari supports many different input types. Availability Available in Safari 1.0 and later.0 and later.0 and later. day of the month. and year. Availability Available in Safari 1. These input types are listed below. 2011-07-12 | © 2011 Apple Inc. checkbox A standard checkbox.

All Rights Reserved. Availability Available in Safari 1.0 and later.1 and later.0 and later. Brings up a keyboard optimized for email address entry in iOS 3. email A text field for specifying an email address. Available in iOS 1. 2011-07-12 | © 2011 Apple Inc.0 and later. day of the month.0 and later.0 and later. datetime-local An input control for specifying a date and time value where the format depends on the locale. Availability Available in Safari 1. hidden A hidden input type (to store values without showing them on the page). file A file upload interface. 122 . Availability Available in iOS 3. Note that the input can still be seen in the page source. Availability Available in iOS 5.Supported Input Values Input Type Values datetime An input control for specifying a date and time value. year. The user can select a month. Availability Available in iOS 5.1 and later. and time of day.

Brings up a number pad keyboard in iOS 3. 2011-07-12 | © 2011 Apple Inc.0 and later.0 and later. Availability Available in Safari 1. radio A radio button.Supported Input Values Input Type Values image An image that acts as an input. Availability Available in iOS 3.0 and later.0 and later. Available in iOS 1. 123 . Specifying an input type of \d* or [0-9]* is equivalent to using this type. month An input control for selecting a month. All Rights Reserved.0 and later. number A text field for specifying a number.1 and later.0 and later.0 and later. Available in iOS 1. Available in iOS 1. password A visually-shielded password field.1 and later. Availability Available in Safari 1. Availability Available in Safari 1. Availability Available in iOS 5.

0 and later. 124 . Available in iOS 1. Availability Available in Safari 1.0 and later. submit A submission button for a form.0 and later. Available in iOS 1.0 and later. Support Level Apple extension. its maximum value should be set with max . reset A reset button for a form.Supported Input Values Input Type Values range A slider. All Rights Reserved.0 and later.0 and later. search A search field. Availability Available in Safari 2. Available in iOS 5. and “results” (page 107) attributes in addition to standard HTML attributes.0 and later. and its discrete step size should be set with step . Support Level Apple extension. 2011-07-12 | © 2011 Apple Inc. Availability Available in Safari 1. Its minimum value should be set with the min attribute. “autosave” (page 68). Availability Available in Safari 2. Uses the “onsearch” (page 102). “incremental” (page 85). “placeholder” (page 104).

and optionally AM or PM.0 and later. Brings up a keyboard optimized for URL entry in iOS 3. 2011-07-12 | © 2011 Apple Inc.0 and later.1 and later. url A text field for specifying a URL.1 and later. Brings up a phone pad keyboard in iOS 3. Availability Available in Safari 1.0 and later.Supported Input Values Input Type Values tel A text field for specifying a phone number. 125 . Availability Available in iOS 3. The user can select the hour.0 and later. week An input control for selecting a week. All Rights Reserved. Available in iOS 1. Availability Available in iOS 3.1 and later. Availability Available in iOS 5. text A standard text field. minute. time An input control for specifying a time value. Availability Available in iOS 5.1 and later.

standalone read-only Boolean JavaScript property. Syntax <meta name="apple-mobile-web-app-status-bar-style" content="black"> 2011-07-12 | © 2011 Apple Inc. The default behavior is to use Safari to display web content. All Rights Reserved.1 and later. 126 . Syntax <meta name="apple-mobile-web-app-capable" content="yes"> Discussion If content is set to yes.Supported Meta Tags Apple-specific meta tags are described here. otherwise. it does not. the web application runs in full-screen mode. You can determine whether a webpage is displayed in full-screen mode using the window. Apple-Specific Meta Tag Keys apple-mobile-web-app-capable Sets whether a web application runs in full-screen mode. Availability Available in iOS 2. Support Level Apple extension.navigator. apple-mobile-web-app-status-bar-style Sets the style of the status bar for a web application.

If set to black-translucent. Support Level Apple extension. 127 . Safari on iOS detects any string formatted like a phone number and makes it a link that calls the number. the status bar appears normal. If set to black-translucent. initial-scale = 2. Support Level Apple extension. the web content is displayed on the entire screen. user-scalable = no"> 2011-07-12 | © 2011 Apple Inc. the status bar has a black background. viewport Changes the logical window size used when displaying a page on iOS. If content is set to default. Syntax <meta name="format-detection" content="telephone=no"> Discussion By default. Syntax <meta name = "viewport" content = "width = 320.3.Supported Meta Tags Apple-Specific Meta Tag Keys Discussion This meta tag has no effect unless you first specify full-screen mode as described in “apple-mobile-web-app-capable” (page 126). the web content is displayed below the status bar. partially obscured by the status bar.1 and later. the status bar is black and translucent. Specifying telephone=no disables this feature. format-detection Enables or disables automatic detection of possible phone numbers in a webpage in Safari on iOS. Availability Available in iOS 1. The default value is default.0 and later. If set to black. If set to default or black. Availability Available in iOS 2. All Rights Reserved.

add this to your HTML file: <meta name = "viewport" content = "initial-scale = 2. the value is 0. add this to your HTML file: <meta name = "viewport" content = "width = device-width"> To set the initial scale to 1. you should use a comma-delimited list of assignment statements. If the parameter doesn’t precede with a number. If only a subset of the properties are set. then you should set the width of the viewport to fit your web content.0. then set both of these properties.0"> To set the initial scale and to turn off user scaling.0 and 123x456 is equivalent to 123. A space may work as a deliminator but a comma is preferred.Supported Meta Tags Apple-Specific Meta Tag Keys Discussion Use the viewport meta key to improve the presentation of your web content on iOS. to set the viewport width to the width of the device. For numeric properties. if you want the width to be 980 pixels and the initial scale to be 1. If you are designing a Safari on iOS-specific web application.0. you should set the width to the width of the device. Typically. Safari assumes the width is device-width in portrait and device-height in landscape orientation. 128 . For example. Follow these rules when setting multiple properties: ● Donot use a semicolon as a deliminator. Table 1 (page 129) describes the properties supported by the viewport meta key and their default values. You do not need to set every viewport property. All Rights Reserved.0x is equivalent to 1. it reminds you to use the constants when referring to the device width and height. For example. Therefore. When providing multiple properties for the viewport meta key. if your webpage is narrower than 980 pixels. The console contains tips to help you choose viewport values—for example. add this to your HTML file: <meta name = "viewport" content = "initial-scale = 1. you should use the constants described in Table 2 (page 130) instead of hard-coding specific numeric values. For example.0. then the number prefix is used as the value. 1. you use the viewport meta tag to set the width and initial scale of the viewport. For example. then Safari on iOS infers the other values. For example. use device-width instead of 320 for the width. ● ● When referring to the dimensions of a device. if the value contains a non-numeric character but starts with a number. and device-height instead of 480 for the height in portrait orientation. if you set the scale to 1.3. 2011-07-12 | © 2011 Apple Inc. user-scalable = no"> Use the Safari on iOS console to help debug your webpages as described in “Debugging”.

You can also set this property to the constants described in Table 2 (page 130). You can also set this property to the constants described in Table 2 (page 130). All Rights Reserved. The range is from 223 to 10.0 and later. Zooming by the user is also limited by the minimum-scale and maximum-scale properties. the user can zoom in and out unless you set user-scalable to no.0 and later.0. The default is 980.0 and later. You can set only the initial scale of the viewport—the scale of the viewport the first time the webpage is displayed. Support Level Apple extension. The default is calculated to fit the webpage in the visible area. Available in iOS 1.25.000 pixels. 2011-07-12 | © 2011 Apple Inc. The range is from >0 to 10. Available in iOS 1. maximum-scale Specifies the maximum scale value of the viewport. 129 . The default is 5. The range is determined by the minimum-scale and maximum-scale properties. Available in iOS 1. The range is from >0 to 10. Thereafter. The default is calculated based on the value of the width property and the aspect ratio of the device.0 and later. Available in iOS 1.000. The default is 0. Table 1 Property width Viewport properties Description The width of the viewport in pixels. minimum-scale Specifies the minimum scale value of the viewport. height The height of the viewport in pixels.0. The range is from 200 to 10.0 and later.0. Available in iOS 1.0 and later. initial-scale The initial scale of the viewport as a multiplier.Supported Meta Tags Apple-Specific Meta Tag Keys Availability Available in iOS 1.

1 and later. Setting user-scalable to no also prevents a webpage from scrolling when entering text in an input field. Available in iOS 1.1.0 and later. Available in iOS 1. device-height The height of the device pixels.1. Table 2 Value Special viewport property values Description device-width The width of the device in pixels. Set to yes to allow scaling and no to disallow scaling. 2011-07-12 | © 2011 Apple Inc. The default is yes.1 and later. Available in OS 1. 130 .Supported Meta Tags Apple-Specific Meta Tag Keys Property user-scalable Description Determines whether or not the user can zoom in and out—whether or not the user can change the scale of the viewport. All Rights Reserved.

"> <img src='myimage. button A standard button. Availability Available in Safari 4.org/TR/wai-aria/. Availability Available in Safari 4. The following example shows an image that is recognized by accessibility utilities as a button: <div role="button" tabindex="0" onkeydown="return buttonEvent(event).Supported Accessibility Roles Accessibility roles from the WAI-ARIA specification that are supported in Safari are described here.0 and later. 131 . Accessibility Roles WebKit now has elementary support for the WAI-ARIA specification. checkbox A standard checkbox.jpg'> </div> More information on the WAI-ARIA specification can be found at http://www. group A group of elements that should not be included individually in a page summary or table of contents. All Rights Reserved.w3. 2011-07-12 | © 2011 Apple Inc. indicating the purpose of a custom interface element on a webpage. Developers can assign a value to the role attribute of a div or span element." onclick="return buttonEvent(event). This enables accessibility utilities to interact with these elements as they would with standard inputs and menus.0 and later.

0 and later. Availability Available in Safari 4. Availability Available in Safari 4.Supported Accessibility Roles Accessibility Roles Availability Available in Safari 4.0 and later. heading The heading for a section of a page. Availability Available in Safari 4.0 and later.0 and later. All Rights Reserved. 2011-07-12 | © 2011 Apple Inc.0 and later. 132 .0 and later. listitem A list item. img A collection of elements that compose an image. Availability Available in Safari 4. Availability Available in Safari 4. link A hyperlink. listbox A dropdown list of options.

Availability Available in Safari 4. menuitemradio A radio button menu item in a group of mutually exclusive choices.0 and later. 133 .Supported Accessibility Roles Accessibility Roles menu A standard menu. menuitem An option in a menu. Availability Available in Safari 4.0 and later. Availability Available in Safari 4. Availability Available in Safari 4. Availability Available in Safari 4. All Rights Reserved.0 and later.0 and later. menubar A container of menus. 2011-07-12 | © 2011 Apple Inc. Availability Available in Safari 4.0 and later. menuitemcheckbox A checkable menu item. option An item in a dropdown list.0 and later.

Availability Available in Safari 4.0 and later. All Rights Reserved.Supported Accessibility Roles Accessibility Roles progressbar A visual indicator of the progress of a task. radio A radio button in a group of mutually exclusive choices. Availability Available in Safari 4.0 and later.0 and later. Availability Available in Safari 4. 134 . 2011-07-12 | © 2011 Apple Inc. textbox A text input field.

Added Safari availability for the manifest attribute. Added a link to the HTML5 specification.0. 2009-04-28 2009-02-05 2008-11-12 2008-10-15 2008-09-09 2011-07-12 | © 2011 Apple Inc. Updated for Safari 4. Added the webkit-playsinline HTML attribute.0. Updated for Safari 3. All Rights Reserved. Minor edits throughout. Updated the availability of webkit-playsinline. 135 . Added the listitem ARIA role and iPhone availability for the audio and video elements.1. Applied minor edits throughout. Miscellaneous edits.1.Document Revision History This table describes the changes to Safari HTML Reference . Revised document structure and added application cache manifest and other iOS HTML attributes. Added descriptions of new input types supported in iOS 3. Date 2011-07-12 2011-04-14 2010-11-15 2010-09-01 2010-08-03 2010-05-07 2009-11-17 2009-08-11 2009-06-08 Notes Updated for iOS 5. Added more information on autocapitalize and autocorrect attributes.

Corrected typos. Reformatted content. Added information on the paragraph tag. Corrected typos. 2007-12-11 2007-09-04 2006-05-23 2005-11-09 2005-08-11 2005-06-04 TBD New document that describes the HTML tags and properties supported by Safari and the Web Kit. Corrected typos. 2011-07-12 | © 2011 Apple Inc. 136 . Added iPhone-specific HTML attributes.Document Revision History Date 2008-01-15 Notes Moved reference information for the viewport meta key from Safari Web Content Guide for iPhone. Corrected typos. All Rights Reserved.

. or employee is authorized to make any modification. THIS DOCUMENT IS PROVIDED “AS IS. iPhone. Even though Apple has reviewed this document. © 2011 Apple Inc. mechanical. ORAL OR WRITTEN. Java is a registered trademark of Oracle and/or its affiliates. Apple retains all intellectual property rights associated with the technology described in this document. iTunes. so the above limitation or exclusion may not apply to you. WITH RESPECT TO THIS DOCUMENT. extension. IN NO EVENT WILL APPLE BE LIABLE FOR DIRECT. recording.Apple Inc. MERCHANTABILITY. or otherwise. Apple Inc. are granted with respect to any of the technology described in this document. photocopying. with the following exceptions: Any person is hereby authorized to store documentation on a single computer for personal use only and to print copies of documentation for personal use provided that the documentation contains Apple’s copyright notice. EITHER EXPRESS OR IMPLIED. iOS is a trademark or registered trademark of Cisco in the U. Mac OS. and other countries and is used under license. This warranty gives you specific legal rights. without prior written permission of Apple Inc. OS X. even if advised of the possibility of such damages. OR FITNESS FOR A PARTICULAR PURPOSE.” AND YOU. the Apple logo. THE READER.. Dashcode. No part of this publication may be reproduced. EXPRESS OR IMPLIED.. 1 Infinite Loop Cupertino. AS A RESULT. ITS QUALITY. THE WARRANTY AND REMEDIES SET FORTH ABOVE ARE EXCLUSIVE AND IN LIEU OF ALL OTHERS. CA 95014 408-996-1010 Apple. ARE ASSUMING THE ENTIRE RISK AS TO ITS QUALITY AND ACCURACY. OR CONSEQUENTIAL DAMAGES RESULTING FROM ANY DEFECT OR INACCURACY IN THIS DOCUMENT. and other countries. and Safari are trademarks of Apple Inc. in any form or by any means. express or implied.S. and you may also have other rights which vary from state to state. INDIRECT. or transmitted. or addition to this warranty.S. No licenses. registered in the U. SPECIAL. stored in a retrieval system. ACCURACY. INCIDENTAL. This document is intended to assist application developers to develop applications only for Apple-labeled computers. No Apple dealer. APPLE MAKES NO WARRANTY OR REPRESENTATION. agent. Some states do not allow the exclusion or limitation of implied warranties or liability for incidental or consequential damages. All rights reserved. Mac. electronic.