- index.html
- style.css
HTML
<!DOCTYPE html>
<html>
<head>
<title>CSS selectors</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Course outline</h1>
<p><strong>Paired tags.</strong></p>
<p><strong>Single tags.</strong></p>
<p><strong>Tag attributes.</strong></p>
<p><strong>Inline styles</strong></p>
<p><em>External Styles.</em></p>
<p><em>Styling by class.</em></p>
</body>
</html>
CSS
body {
font-family: "Tahoma", serif;
}
/* A little help.
h1 {
color: #999999;
}
*/
You have moved to another page
GoalsCompleted
0
Practice with simple selectors:
- For
h1
setcolor: #99999999;
. - For
strong
setcolor: green;
. - For
em
setcolor: red;
.