This is an old revision of the document!
lists.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
<script src="lists.js"></script>
</head>
<body>
<h2>
Who Am I?
</h2>
<ol>
<li>Family Members
<ul>
<li>Father</li>
<li>Mother</li>
<li>Sister</li>
<li>Brother</li>
</ul>
</li>
<li>Hobbies
<ol>
<li>Music</li>
<li>Football</li>
<li>Cycling</li>
</ol>
</li>
<li>Favourite Bands
<ul>
<li>Shakira</li>
<li>Juanes</li>
</ul>
</li>
</ol>
</body>
</html>
style.css
ol {
color: blue;
}
ol ol {
font-weight: 700;
}
</body> tag) <h2>Checklist</h2>
<ul>
<li>100g flour</li>
<li>2 eggs</li>
<li>300ml milk</li>
</ul>
<li> tag, but in front of the text. <li><input type="checkbox" name="flour">100g flour</li>
<li><input type="checkbox" name="eggs">2 eggs</li>
<li><input type="checkbox" name="milk">300ml milk</li>
type="checkbox".name="flour".ul {
list-style-type: none;
}
list-style-type defines the type of bullet or number in front of your list items. 'none' removes bullets and numbers entirely.