How to use the <title> tag to define HTML document title?

JavascriptWeb DevelopmentFront End Scripts

To set the title for an HTML Document, use the HTML <title> tag. The body title is placed between the <head> and the </head> tags. HTML document title is visible on the web browsers title bar. It is considered good for SEO.

You can try to run the following code on a web browser to check the title of the document, which appears on the web browsers tab


Live Demo

<!DOCTYPE html>
         <title>HTML Title</title>
         <p>This is demo text.</p>
Published on 01-Feb-2018 10:56:59