Setting the Title of Your Web Page

The title of your HTML page is what users see at the top of the browser tab. It’s the name of your page and should give a clear idea of what the page is about. It also helps search engines understand your page.

Asked Question: How to add a title to my HTML page ?

<title>Your Web Page Title</title>
  

In this example, the title is "Your Web Page Title". This is added between the <title> tags inside the <head> section of the HTML. When users open the webpage, this text shows up in the browser tab.


<!DOCTYPE html>
<html>
  <head>
    <title>Your Web Page Title</title> 
  </head>
  
  <body>
    <h1>Welcome to my website!</h1>
    <p>This is some content on my web page.</p>
  </body>
</html>
  

Heads Up! Your page title should clearly describe the page's content. This helps both users and search engines understand what your page is about. If your page is about web design tips, call it "Web Design Tips" rather than something vague.

Note: We aim to make learning easier by sharing top-quality tutorials, but please remember that tutorials may not be 100% accurate, as occasional mistakes can happen. Once you've mastered the language, we highly recommend consulting the official documentation to stay updated with the latest changes. If you spot any errors, please feel free to report them to help us improve.

top-home