Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 35 additions & 22 deletions html_css/styling-lists.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,25 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Styling lists</title>
<title>Best Website Ever</title>
<style>
/* General styles */

html {
font-family: Helvetica, Arial, sans-serif;
font-size: 10px;
color: aqua;
background-color: yellow;
}
h1 {
font-size: 3rem;
color: blueviolet;
position: relative;
}

h2 {
font-size: 2rem;
color: brown;
}

ul,ol,dl,p {
Expand All @@ -22,6 +30,7 @@

li, p {
line-height: 1.5;
color: chartreuse;
}

/* Unordered list styles */
Expand Down Expand Up @@ -58,41 +67,45 @@
</style>
</head>
<body>
<h2>Shopping (unordered) list</h2>
<h1>Jeremy Clarkson Is National Treasure</h1>
<iframe src="https://giphy.com/embed/pc9nw0btjvWOPyynPF" width="480" height="270" frameBorder="0" class="giphy-embed" allowFullScreen></iframe>
<h2>Reasons For Him Being A National Treasure</h2>

<p>Paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference.</p>
<p>I'm afraid you are not allowed to Disagree with this list:</p>

<ul>
<li>Humous</li>
<li>Pitta</li>
<li>Green salad</li>
<li>Halloumi</li>
<li>He Loves Cars</li>
<li>He Likes Cars</li>
<li>He Blew up his house</li>
<li>He's Driven to the north pole</li>
<li>He's a Farmer</li>
<li>He owns a Lambo (tractor)</li>
</ul>

<h2>Recipe (ordered) list</h2>
<h2>Reasons For Him Not Being A National Treasure</h2>

<p>I'm afraid you are not allowed to Disagree with this list:</p>

<p>Paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference.</p>
<ul>
<li>No Reasosns Against</li>
<li>Completely unrelated but honourable mention to James May</li>
<li>He loves cheese and is also a national treasure</li>
</ul>

<ol start="4">
<li>Toast pitta, leave to cool, then slice down the edge.</li>
<li>Fry the halloumi in a shallow, non-stick pan, until browned on both sides.</li>
<li>Wash and chop the salad.</li>
<li>Fill pitta with salad, humous, and fried halloumi.</li>
</ol>
<iframe src="https://giphy.com/embed/8xYtJLE1zrzcesOTVQ" width="480" height="270" frameBorder="0" class="giphy-embed" allowFullScreen></iframe><p><a href="https://giphy.com/gifs/foodtribe-food-cheese-james-may-8xYtJLE1zrzcesOTVQ">CHEESE</a></p>

<h2>Ingredient description list</h2>

<p>Paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference.</p>
<p>He loves CHEESE</p>

<dl>
<dt>Humous</dt>
<dd>A thick dip/sauce generally made from chick peas blended with tahini, lemon juice, salt, garlic, and other ingredients.</dd>
<dt>Pitta</dt>
<dd>A soft, slightly leavened flatbread.</dd>
<dt>Cheese</dt>
<dd>Mature Cheese.</dd>
<dt>Yellow Cheese</dt>
<dd>Yellowy</dd>
<dt>Halloumi</dt>
<dd>A semi-hard, unripened, brined cheese with a higher-than-usual melting point, usually made from goat/sheep milk.</dd>
<dt>Green salad</dt>
<dd>That green healthy stuff that many of us just use to garnish kebabs.</dd>
<iframe src="https://giphy.com/embed/ebgdYIBfTPBqOwjZgD" width="480" height="270" frameBorder="0" class="giphy-embed" allowFullScreen></iframe>
</dl>


Expand Down