What kind of metadata about the web page can the <head> element contain?

If you navigate to the Codecademy catalog and look at the top of your browser, you’ll notice the words All Courses & Tutorials | Codecademy, which is the title of the web page.

A browser’s tab displays the title specified in the <title> tag. The <title> tag is always inside of the <head>.

<!DOCTYPE html> <html> <head> <title>My Coding Journal</title> </head> </html>

If we were to open a file containing the HTML code in the example above, the browser would display the words My Coding Journal in the title bar (or in the tab’s title).



Add “Brown Bears” as the title of your web page by using the <title> element,

Unfortunately, you won’t be able to see the title of your page in the smaller browser to the right. We’ll show you what it would look like in the next exercise.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?