HTML Page Title Tutorial
The <title>
tag in HTML is used to define the title of the web page. The title is displayed in the browser tab or window title bar. It is important for search engine optimization and helps users understand the content of the page.
How to add a title to your HTML page:
To add a title to your HTML page, you need to include the <title>
tag inside the <head>
section of your HTML document. Here's an example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<h1>Hello World!</h1>
<p>This is my first webpage.</p>
</body>
</html>
Example:
Page Title | Browser Tab |
---|---|
My Page Title | My Page Title - Web Browser |