- 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>
Return to home
</nav>
</header>
<main>
<article>
<h1>Day Four. How I almost got sick</h1>
<p>Today I found out that it can be dangerous to be a coder. When you are just starting out, you are still inexperienced and can easily get infected by some sort of disease. Here are just some of the dangers that may be lying in wait for you:</p>
<dl>
<dt>Divatosis</dt>
<dd>Acute fear of semantics</dd>
<dt>Tablephobia</dt>
<dd>Avoidance of tables</dd>
<dd>A desire to format tables using divs</dd>
<dt>Classitis</dt>
<dd>The tendency to assign classes to every tag</dd>
</dl>
</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;
}
.danger-text {
color: #ff4400;
}
.danger-block {
padding: 5px 10px;
background-color: #ffd0bf;
}
.no-danger-block {
padding: 5px 10px;
background-color: #c6f5f0;
}
You’ve gone to a different page
Goalscompleted
0
- Let’s enclose the word
dangerous
in the paragraph in<span>
with the attributeclass="danger-text"
. - Let’s enclose all of the terms and their descriptions with the exception of the last one (“Classitis”) in
<div>
with the attributeclass="danger-block"
. - Let’s enclose the last term (Classitis)
<div>
with the attributeclass="no-danger-block"
.
Comments