This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div data-picture data-alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia"> | |
<div data-src="small.jpg"></div> | |
<div data-src="medium.jpg" data-media="(min-width: 400px)"></div> | |
<div data-src="large.jpg" data-media="(min-width: 800px)"></div> | |
<div data-src="extralarge.jpg" data-media="(min-width: 1000px)"></div> | |
<!-- Fallback content for non-JS browsers. Same img src as the initial, unqualified source element. --> | |
<noscript> | |
<img src="external/imgs/small.jpg" alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia"> | |
</noscript> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<picture width="500" height="500"> | |
<source media="(min-width: 45em)" srcset="large-1.jpg 1x, large-2.jpg 2x"> | |
<source media="(min-width: 18em)" srcset="med-1.jpg 1x, med-2.jpg 2x"> | |
<source srcset="small-1.jpg 1x, small-2.jpg 2x"> | |
<img src="small-1.jpg" alt=""> | |
<p>Accessible text</p> | |
</picture> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<picture width="500" height="500"> | |
<source media="(min-width: 769px)" src="large.jpg"> | |
<source media="(min-width: 480px)" src="med.jpg"> | |
<source src="small.jpg"> | |
<img src="small.jpg" alt=""> | |
<p>Accessible text</p> | |
</picture> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div.example { | |
/*add all base styling here*/ | |
} | |
@media only screen and (min-width: 320px) { | |
/*add styling for base smart phones here*/ | |
} | |
@media only screen and (min-width: 480px) { | |
/*add styling for base smart phones in landscape orientation here*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<li><a href="tel:5555555555">Call Me</a></li> | |
<li><a href="mailto:[email protected]?subject=contactform%20submission">Email Me</a></li> | |
<li><a href="sms://5555555555?message=someMessage">Text Me</a></li> | |
</ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Short Page Title</title> | |
</head> | |
<meta name="HandheldFriendly" content="True"> | |
<meta name="MobileOptimized" content="320"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta http-equiv="cleartype" content="on"> |
NewerOlder