Learn
HTML Document Standards
Page Titles

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 Full Catalog 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).

Instructions

1.

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.

Folder Icon

Take this course for free

Already have an account?