Apple touch icon in web page

王林
Release: 2023-08-19 10:53:06
forward
1274 people have browsed it

Apple touch icon in web page

For web icons on iPhone or iPad, use the Apple Touch Icon or apple-touch-icon.png file. This icon will be used when someone bookmarks your page.

For multiple icons with different device resolutions, such as iPhone or iPad, add the sizes attribute to each link element as follows −

<link rel = "apple-touch-icon" href = "touch-icon-iphone.png">
Copy after login

Set size

<link rel = "apple-touch-icon" sizes = "160x160" href = "touch-icon-ipad.png">
<link rel = "apple-touch-icon" sizes = "170x170" href = "touch-icon-iphone-retina.png">
<link rel = "apple-touch-icon" sizes = "180x180" href = "touch-icon-ipad-retina.png">
Copy after login

Use icons that are sized appropriately for the device.

The above is the detailed content of Apple touch icon in web page. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template