-
Hajipur, Bihar, 844101
The HTML page title is the text shown in the browser tab, search engine results, and bookmarks. It gives users and search engines a quick summary of what the page is about.
The page title is defined inside the <title>
tag, which must be placed inside the <head>
section of your HTML document.
<!DOCTYPE html>
<html>
<head>
<title>My First Web Page</title>
</head>
<body>
<h1>Welcome to My Website</h1>
</body>
</html>
Purpose | Description |
---|---|
Browser Tab | Shows title on the tab |
Search Engine Results (SEO) | Appears as the clickable headline in Google |
Bookmarks/Favorites | Used as label when user bookmarks the page |
Be descriptive and concise (50–60 characters)
Include important keywords for SEO
Avoid keyword stuffing
Make it unique for every page
<head>
<title>How to Cook Perfect Pasta - Food Blog</title>
</head>
<script>
document.title = "Dynamic Page Title";
</script>
⚠ Use JavaScript title changes cautiously as they can confuse users and search engines.
Q1. Create an HTML page and give it the title “Welcome Page”.
Q2. Write the correct code to display “Contact Us” as the page title.
Q3. Place the <title>
tag inside the <head>
section.
Q4. Create a title for a portfolio page: “John Doe – Web Developer”.
Q5. Use JavaScript to change the title after 3 seconds.
Q6. Write a title for an HTML tutorial page.
Q7. Make sure your HTML file shows “Home - MySite” in the browser tab.
Q8. Add different titles for two different HTML pages.
Q9. Write a short and SEO-friendly title for a travel website.
Q10. Bookmark your test page and verify the title appears correctly.
Q1: Which tag defines the title of a web page?
Q2: Where is the <title> tag placed in an HTML document?
Q3: What does the page title affect?
Q4: Which of the following is a good title for an HTML portfolio page?
Q5: Can you have more than one <title> tag in a single HTML page?
Q6: What is the ideal character length for a page title (SEO)?
Q7: What happens if <title> is missing from a page?
Q8: What does this code do '<title>About Us - Company</title>' ?
Q9: Which tag is best used to give a short description to search engines?
Q10: Which of the following is a bad practice for writing titles?