Set Your Site’s Apple Touch Icon

By  on  
Apple Touch Icon

Apple's mobile devices are taking over the world. iPhones and iPod Touches are all over the place. You can set an Apple Touch Icon for your website just like you can set a favorite icon. So lets do it!

The XHTML

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

The icon should be 114 pixels wide by 114 pixels tall.

Just like the favorite icon. Yet another creative detail to add to your site. Show people that you care about the details!

Recent Features

  • By
    6 Things You Didn&#8217;t Know About Firefox OS

    Firefox OS is all over the tech news and for good reason:  Mozilla's finally given web developers the platform that they need to create apps the way they've been creating them for years -- with CSS, HTML, and JavaScript.  Firefox OS has been rapidly improving...

  • By
    CSS vs. JS Animation: Which is Faster?

    How is it possible that JavaScript-based animation has secretly always been as fast — or faster — than CSS transitions? And, how is it possible that Adobe and Google consistently release media-rich mobile sites that rival the performance of native apps? This article serves as a point-by-point...

Incredible Demos

  • By
    Chris Coyier&#8217;s Favorite CodePen Demos II

    Hey everyone! Before we get started, I just want to say it's damn hard to pick this few favorites on CodePen. Not because, as a co-founder of CodePen, I feel like a dad picking which kid he likes best (RUDE). But because there is just so...

  • By
    Facebook Sliders With Mootools and CSS

    One of the great parts of being a developer that uses Facebook is that I can get some great ideas for progressive website enhancement. Facebook incorporates many advanced JavaScript and AJAX features: photo loads by left and right arrow, dropdown menus, modal windows, and...

Discussion

  1. Good one to remember.

    Also worth mentioning that the icon should be 57x57px

  2. Good call George!

  3. And what does this button do?

  4. @Rick: There’s an option in iPhone/iPod Touch’s Safari that lets you place shortcuts to websites right on the main screen. This icon will be used in case someone does that for your site.

  5. confiq

    It reminds me of MSIE and they standardization :)

  6. Thanks for the tip. I’ve just done it. But, instead of putting the PNG file in the root folder, I put in the themes folder and changed the href reference accordingly. Is this all right?

  7. where do i put this xhtml code?

    • In the header like html does. Remeber the link code ends with />.

  8. By the way it is also used in Opera’s Speed Dial.

  9. dendi

    But this doesn’t work for blogger mobile template but only for the web version. Ho can i put this also for the mobile version

  10. Should there be multiple icons listed in the header for new and old devices.? Also, it would be nice if this post [or every post] had a date so we/I would know when it was written as an indicator of it’s relevance.

  11. I was in search for this. Good one.

  12. I added the code to the root folder – is something supposed to show up on the home page or only when you use a mobile device?

  13. Pulled a link to the iOS developer Library with some additional graphics specifications. Thanks for the great post. Love the hover effects!

    http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html

    Added your blog as a reference on my SEObrainstorm.com!

  14. I noticed a lot of requests for that image in my visitor logs and had no clue what it’s about. Thanks for the tip!

  15. I just published an Apple touch icons generator, converts your image to the right sizes and generates the correct html code to use them on your page. Curious to hear if you like it.

  16. OB-1

    PLEASE NOTE:

    1. The one size fits all icon size now is 114px 114px if you can’t be bothered to make all the various sizes – the OS will rescale it for you.

    2. The image icon would not work if I called it anything other than “apple-touch-icon.png”. This drove me nuts.

  17. its worked even without put meta in header, just put apple-touch-icon-precompossed.png in your web folder :D

  18. The right answer was…

    … 152×152. 180×180, thanks to iOS 8 (updated on September 26th, 2014).

    Apple defines 4 icon sizes, from 60×60 up to 152×152. What the specifications forget to mention is that these sizes are for iOS 7. To support iOS 6 and prior, you need 4 other dimensions.

    IPHONE IPAD
    NON-RETINA RETINA NON-RETINA RETINA
    IOS 6 AND PRIOR 57×57 114×114 72×72 144×144
    IOS 7 60×60 120×120 76×76 152×152

Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!