HTML introduction
The layers of the web
- HTML
- CSS
- JavaScript
Semantics
Choose elements for their purpose
not what they look like
- The
b
tag doesn’t mean “bold” - The
ul
doesn’t mean add “bullets” - The
h1
doesn’t mean “big text”
HTML
<header>
<h1>Titanosaur</h1>
<img src="images/titanosaur.jpg" alt="Titanosaur skeleton">
<p>The heaviest creatures ever to walk the earth.</p>
<nav>
<ul>
<li><a href="#desc">Description</a></li>
<li><a href="#paleo">Paleobiology</a></li>
<li><a href="#tax">Taxonomy</a></li>
</ul>
</nav>
</header>