Recap
In the first lesson, we learned that:
- HTML is the basic building block of web pages, along with CSS and JavaScript.
- An HTML element consists of an opening tag, content, and a closing tag.
- We declare the document type using
<!DOCTYPE html>
on the first line. - When one element is inside another element, we say that it is nested or that the outer element is the parent of the inner element, and vice versa.
- When two elements are nested inside the same element, we say that they are siblings.
- Each child element is indented by a tab (4 or 2 spaces).
- The
html
element defines the content of an HTML document. It is written immediately after the document type declaration. All other tags must be nested inside thehtml
element. - The
head
element contains metadata for the web page, such as the favicon or title. It is written as the first element nested inside thehtml
element. - The
body
element contains the visible content of the web page, such as headings, images, videos. It is written as the second element nested inside thehtml
element, immediately after thehead
element.
These pieces of information are the absolute basics of HTML. In the next lesson, we will start adding the first content to our web page, including headings, paragraphs, lists, as well as formatted text and comments. Exciting times ahead!
Instructions
Congratulations, you have completed the first HTML programming lesson!
Start programming for free
9/9