This lesson goes over HTML: why and how we use it
<h1>
, paragraphs <p>
, bold <b>
, and italic <i>
🏷️📝<a>
tag, which connected her readers to new adventures and ideas 🌐🔗<a href="https://www.wikipedia.org">
Go to Wikipedia
</a>
<a>
</a>
Go to Wikipedia
href=""
<a href="https://www.wikipedia.org" target="_blank">
Go to Wikipedia
</a>
<!-- parent -->
<a href="https://www.wikipedia.org" target="_blank">
<!-- child -->
<img src="/wikipedia.jpg" alt="Go to Wikipedia">
</a>
In that case, the one inside is known as a child element and the one outside is the parent element.
If there are multiple levels of nesting, then all the elements inside an outer element are its descendants.
Most attributes only make sense on specific elements.
href=""
is for <a>
elements, to specify where to take the user when they click the link.src=""
is for <img>
elements, to specify the url of the image to load.for=""
is for <label>
elements, to specify which input element it is paired with.class=""
or id=""
<!DOCTYPE html>
<html>
<head>
<!-- where we tell the browser how to process the document: -->
<!-- what title to put in the browser tab -->
<!-- what style sheets to load -->
<!-- what language to use -->
<!-- we will always use a character set called UTF-8 -->
<!-- UTF-8 allows for all languages as well as things like emoji -->
</head>
<body>
<!-- content displayed to user -->
</body>
</html>
Read the code, modify the code, play around and make sure that you understand every single line. Ask any questions that occur to you.
<form>
.Mozilla Developer Network, MDN