- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The website of a beginning coder</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<p>Blog</p>
<nav>
<a href="day-15.html">Return to entry</a>
</nav>
</header>
<main>
<article>
<figure>
<img src="files/muffin-3.jpg" width="486" height="315" alt="Muffin">
<figcaption>Muffin offers his praise for the significant learning progress that we have made.</figcaption>
</figure>
<nav class="pagination">
<a href="photo-2.html">< Back</a>
<!-- Modify this link -->
<a href="#">Forward ></a>
</nav>
</article>
<aside>
Your ad could go here
</aside>
</main>
<footer>
Website footer
</footer>
</body>
</html>
CSS
body {
padding: 0 30px;
font-size: 14px;
line-height: 22px;
font-family: "Georgia", serif;
color: #222222;
}
h1 {
font-size: 20px;
line-height: normal;
}
nav {
color: #888888;
}
aside {
margin: 20px 0;
color: #c4c4c4;
}
a[href] {
color: #0099ef;
text-decoration-line: underline;
}
figure {
margin-left: 0;
margin-right: 0;
}
figure img {
vertical-align: middle;
border: 8px solid rgb(202, 224, 248);
}
figcaption {
width: 502px;
padding-bottom: 8px;
font-size: 12px;
letter-spacing: 0.02em;
font-style: italic;
text-align: center;
background-color: rgb(202, 224, 248);
}
.pagination a {
display: inline-block;
margin-right: 30px;
margin-bottom: 15px;
}
.pagination {
text-align: center;
}
You’ve gone to a different page
Goalscompleted
0
- Remove the attribute
href
from the linkForward
. - Then add the attribute
title
with the textThis is the last photo in the gallery
to it.
Comments