Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Picture element practice</title>
</head>
<style>
html{overflow-x: hidden;}
img {display: block; margin: 0 auto;}
body{background-color:gainsboro ;}
</style>
<body>
<aside>
<picture>
<!--extra large image displayed at 1100px and higher-->
<source media="(min-width: 1100px)" srcset="images/extralarge.jpg">
<!--large image displayed at 945px to 1099px-->
<source media="(min-width: 945px)" srcset="images/art-large.jpg">
<!--medium image displayed at 944px and lower-->
<img src="images/art-medium.jpg" alt="statue image">
</picture>
</aside>
</body>
</html>