The title of an HTML page is defined using the <title> tag. This title appears in the browser tab and is used by search engines and bookmarking tools.
<!DOCTYPE html>
<html>
<head>
<title>My Website Title</title>
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This is a sample page.</p>
</body>
</html>
<title> tag must be placed inside the <head> section.If your title is: <title>About Us - AIT Academy</title>
The browser tab will show: About Us - AIT Academy
<title> tag inside the <head> section.<title>...</title> inside the <head> tag.<!DOCTYPE html> <html> <head> <title>AIT - Academy of Information Technology</title> </head> <body> <p>Welcome to the Academy of Information Technology. Learn HTML, CSS, JavaScript and start your journey in web development today!</p> </body> </html>
Welcome to the Academy of Information Technology. Learn HTML, CSS, JavaScript and start your journey in web development today!
<title> element is required in HTML documents and sets the text displayed on browser tabs, search engine results, and bookmarks.