What are all the special iPhone / iPod Touch HTML tags?

Welcome to Programming Tutorial official website. Today - we are going to cover how to solve / find the solution of this error What are all the special iPhone / iPod Touch HTML tags? on this date .

After peeking at the SO source, I noticed this tag:

<link rel="apple-touch-icon" href="/apple-touch-icon.png" />

Which after a quick Google revealed an Apple “favicon” type thing for display on your homepage (“WebClip Bookmark” to be exact).

The only other one that jumps to mind is the:

<input type="search" results="5"/>

alt text
(source: alexking.org)

This type=”search” causes the field to “inherit” the Apple search icon, and the optional results=”x” enables a history of “x” keywords to be maintained.

I’m therefore wondering, what other Apple/Safari (iPhone/iPod Touch) specific HTML tags and attributes are out there that I’m not aware of! Curious minds need to know!


<meta name="viewport" content="width=320, initial-scale=2.3, user-scalable=no">

Allows you to set the width, height and scale values

<meta name="apple-mobile-web-app-status-bar-style" content="black" />

Set the status bar style, pretty self explanatory.

<meta name="apple-mobile-web-app-capable" content="yes" />

As Marc mentioned above, and is explained in the daringfireball.net link, allows the webpage to be run in full-screen mode, as opposed to through safari.

There’s other various attributes that are supported and are documented here: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html