-
Hajipur, Bihar, 844101
Hajipur, Bihar, 844101
HTML5 Basics
HTML Introduction
HTML Editors
HTML Basic
HTML Elements
HTML Attributes
HTML Headings
HTML Paragraphs
HTML Styles
HTML Formatting
HTML Quotations
HTML Comments
HTML Styling and Design
HTML Links and Media
HTML Layout and Structure
HTML Tables
HTML Lists
HTML Block & Inline
HTML Div
HTML Classes
HTML Id
HTML Head
HTML Layout
HTML Responsive
HTML Computercode
HTML Semantics
HTML Forms
HTML Forms
HTML Form Attributes
HTML Form Elements
HTML Input Types
HTML Input Attributes
Input Form Attributes
HTML Graphics
HTML APIs
HTML Advanced Topics
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.
HTML5 Basics
HTML Introduction
HTML Editors
HTML Basic
HTML Elements
HTML Attributes
HTML Headings
HTML Paragraphs
HTML Styles
HTML Formatting
HTML Quotations
HTML Comments
HTML Styling and Design
HTML Links and Media
HTML Layout and Structure
HTML Tables
HTML Lists
HTML Block & Inline
HTML Div
HTML Classes
HTML Id
HTML Head
HTML Layout
HTML Responsive
HTML Computercode
HTML Semantics
HTML Forms
HTML Forms
HTML Form Attributes
HTML Form Elements
HTML Input Types
HTML Input Attributes
Input Form Attributes
HTML Graphics
HTML APIs
HTML Advanced Topics