- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test: Travel gallery. Appearance</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Travel gallery</h1>
<p>
The excuse <q>I have no paws</q> does not work anymore.<br>
Travel with <a href="https://cats-travel.com">our agency</a>. Meow.
</p>
<div class="gallery">
<img src="files/greece.jpg" width="140" height="200" alt="Greece">
<img class="new" src="files/japan.jpg" width="150" height="170" alt="Japan">
<img src="files/turkey.jpg" width="170" height="130" alt="Turkey">
</div>
</body>
</html>
CSS
body {
width: 550px;
margin: 0;
padding: 0 10px;
font-family: "Arial", sans-serif;
font-size: 16px;
line-height: 20px;
}
h1 {
font-size: 26px;
}
p {
width: 550px;
padding: 15px 20px;
color: black;
}
selector {
border: 5px solid orange;
}
selector {
margin-right: 10px;
vertical-align: top;
border-radius: 20px;
}
- Goal
- Result
- Overlay
- Differences
- ?
Press Compare to send your code for review.