-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsrcset-density.html
More file actions
20 lines (16 loc) · 857 Bytes
/
Copy pathsrcset-density.html
File metadata and controls
20 lines (16 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Using srcset using display density descriptors - Responsive images</title>
<meta name="description" content="Learn usage of srcset using display denstiy descriptors in responsive images">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./styles/index.css">
</head>
<body>
<h2>Srcset using display density descriptors</h2>
<p>Use Chrome device emulator to check the actual image (currentSrc) loaded by the browser on different devices.</p>
<img id="image" src="https://ik.imagekit.io/ikmedia/paddy.jpg"
srcset="https://ik.imagekit.io/ikmedia/paddy.jpg?tr=w-300 1x, https://ik.imagekit.io/ikmedia/paddy.jpg?tr=w-600 2x, https://ik.imagekit.io/ikmedia/paddy.jpg?tr=w-900 3x" />
</body>
</html>