Question
If headings are suppose to be used for titles, why does this exercise use the <title>
tag for the “Brown Bears” label near the top of the document? Can I also use a title tag in place of heading elements?
Answer
The <title>
tag can only be used within the head element and (unlike the h1-h6 elements) is never used to create a heading hierarchy within the <body>
of an HTML document. As you will learn in lesson 2, the content of the <title>
tag will display within a window tab but not within the page itself.