In this lesson, you'll learn what the minimal required
code is to create a basic web document. Note that the
minimal HTML is not just about creating a web page: it's
also about creating a valid, well-formed page,
which is something we'll look at in a later lesson.
In order to remain valid, an HTML document must
contain a certain set of elements. These elements are called the
minimal HTML. All documents must contain the
minimal HTML or they are not valid,
well-formed documents (more
on what valid/well-formed means later).
If your document is missing any of the elements or attributes
shown above, it is considered invalid and/or mal-formed.
Summary of Minimal Elements
To learn more about each of the tags used here, read the following
from W3Schools and MDN. W3Schools is a great site for basic
tutorials, and MDN (Mozilla Developers' Network) contains the
"official" documentation for elements and attributes:
<title> defines the document's title. This appears in the bookmark
list when the page is bookmarked, in the browser window or browser
tab when the page is being viewed in the browser, and a few other
Don't confuse the <title> element with the title
attribute, which is covered in a later lesson.
The META element defines data about the document data. For example, it can be used
to define the author of the document, a summary description
of the document, and many other things.
The META element's name attribute defines the name of the piece of data
you're defining e.g. name="author" to indicate that you're going
to define the author of the document.
The META element's content attribute defines the value of the
data item defined with the name attribute.