HTML and CSS
...for Kids!
April 24, 2020
Our goal for today:
Lists are
important.
Especially when you’re
stuck at home.
[ ] Walk the dog
[ ] Pamper the cat
[ ] Study French
[ ] Practice HTML
[ ] Call Grandma
[ ] Math Homework
HTML lists
In HTML, we have two
types of lists:
HTML lists
In HTML, we have two
types of lists:
ordered and unordered.
Ordered lists
Ordered lists have numbers.
Ordered lists
Ordered lists have numbers.
Five great songs:
Ordered lists
The HTML tag for an ordered list is <ol>.
Ordered lists
The HTML tag for an ordered list is <ol>.
Each item in your list is called a list item,
and gets an HTML tag called <li>.
<p>Five great songs:</p>
<ol>
<li>Joe Perry Project, “Black
Velvet Pants”</li>
<li>Dolly Parton, “Jolene”</li>
<li>Lil Nas X, “Old Town Road”</li>
<li>Blue Swede, “Hooked On A Feeling”</li>
<li>Donna Summer, “MacArthur Park”</li>
</ol>
(the ordered list
ends here.)
(I don’t have
to type the
numbers 1-5.
They’ll show up
automatically.)
Unordered lists
Unordered lists have bullets.
Unordered lists
Unordered lists have bullets.
To buy at the grocery store:
Unordered lists
The HTML tag for an unordered list is <ul>.
Each list item still gets an <li>.
<p>To buy at the grocery store:</p>
<ul>
<li>Beans</li>
<li>Tortillas</li>
<li>Avocados</li>
<li>Cheese</li>
<li>El Pato Jalapeño Sauce</li>
</ul>
(Bullets! Not
numbers)
(the list items look the same.)
Let’s make
some lists!
Now, you might
be wondering…
What goes in the <head> of our page?
<head>
Unlike the <body>, which is
your page content,
<head>
Unlike the <body>, which is
your page content,
The <head> provides info
for your browser.
How do we know what
tabs we have open?
How do we know what
tabs we have open?
Because every page has a <title>,
and the <title> goes in the <head>.
<!doctype html>
<html>
<head>
</head>
<body>
<ul>
<li>Dog</li>
<li>Cat</li>
<li>Unicorn</li>
</ul>
</body>
</html>
no <title>
(what’s this page about?)
<!doctype html>
<html>
<head>
<title>Animals!</title>
</head>
<body>
<ul>
<li>Dog</li>
<li>Cat</li>
<li>Unicorn</li>
</ul>
</body>
</html>
<title>
(it’s about
animals!)