Page titles will display in your browser tabs and are important for Search Engine Optimization (SEO). Below we will add two new elements to our code; the <head> tag and inside we will place the <title> tag.
<!DOCTYPE html> <html> <head> <title>This is my page title.</title> </head> <body> My First Web Page </body> </html>
The head element is where information about your page will be stored. Things like page title, meta data (will be covered later) and other things are placed in this element.
As said previously, page titles are very important for Search Engine Optimization or SEO for short.
Edit your HTML file to match the code above. Save the file and refresh your web browser. You should see your page title at the top of the browser window.
This website and it's tutorials are only made possible with your support. Support money goes towards keeping our servers online.
Spread the word! Let people know about our tutorials by placing links on blogs, websites, forums and other places.
Copyright 2019 Step By Step HTML. All Rights reserved.