22 Mar Add Title in an HTML web page
Whenever you open a web page, a text is visible on the browser toolbar. It provides information about the HTML document and called title.
Adding a title is considered good for SEO. The search engine results show the title. To add a title, use the <title> tag,
<title>HTML Example</title>
Add the <title>…</title> tag inside <head>…</head> tag,
<head> <title>HTML Title Tag</title> </head>
The below example adds a title in an HTML web page,
<!DOCTYPE html>
<html>
<head>
<title>HTML Title Example</title>
</head>
<body>
<h2>Example</h2>
<p>This is an example of using title in an HTML web page.</p>
</body>
</html>
The output:

More Examples
- Creating HTML Document
- Creating Headings in HTML web page
- Creating Paragraphs in HTML Web Page
- Page links in an HTML Web Page
- Inserting Image in HTML
- How to create horizontal line in HTML Page
- The href attribute in HTML Page
- Image height and width attribute in HTML
- Inserting Hyperlinks on an HTML web page?
- Why head tag is used in HTML?
- How to set background color in HTML?
- How to set font color in HTML
- How to use StyleSheet in HTML
No Comments