The <title> element sets the page title. It is required in every HTML document and must be inside <head>.
Where the title appears
In the browser tab.
As the default name when a page is bookmarked.
As the clickable headline in search engine results.
Write a short, descriptive title (about 50–60 characters) that clearly says what the page is about. It is one of the most important parts of SEO.
💡 Key Takeaways: HTML Page Title
Mastering HTML Page Title helps you write clean and reliable HTML code. Follow standard conventions, test edge cases, and keep logic simple. Try running the code example below and complete the exercises to build confidence.
HTML Page Title Code Example
HTML
<!DOCTYPE html>
<html>
<head>
<title>Learn HTML Basics | CodesInTech Academy</title>
</head>
<body>
<h1>The title is in the head, not on the page.</h1>
</body>
</html>
Free sign-in required · Google login available
HTML Page Title Practice Exercises
Check what you learned in “HTML Page Title”.
/ 3 solved
Fill in the blank
Set the page title.
<head>
<>My Portfolio</>
</head>
✓ Correct!Not quite. Try again.
Multiple choice
Where does the page title appear?
✓ Correct!Not quite. Try again.
Code challenge
Give the document the title "Learn HTML".
Write the code in the live editor. Your answer is checked automatically.