- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test: Designing an article</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1 class="text-center">The Rules of Life according to Muffin the Cat</h1>
<p>Today we are interviewing Muffin, a talented instructor who is famous in certain narrow circles and just a good cat.</p>
<p class="highlight">Muffin has never before communicated with the press, so this interview is an exclusive.</p>
<p>We now present you with the Rules of Life according to Muffin:</p>
<ul>
<li>Never trust anyone,<br><span class="italic">especially your own owner</span>.</li>
<li>You will never catch any <span class="uppercase">big</span> fish if you’re afraid of losing sight of the shore.</li>
<li class="underline">Pounce like a panther, bite like a lion</li>
</ul>
</body>
</html>
CSS
body {
width: 380px;
margin: 0;
padding: 0 10px;
font-size: 16px;
line-height: 20px;
font-family: "Arial", sans-serif;
}
h1 {
line-height: normal;
}
- Goal
- Result
- Overlay
- Differences
- ?
Press Compare to send your code for review.