HTML <title> Tag
The title of the document is required in all HTML documents and is thus defined by the HTML <title> element. This element thus serves the purpose of specifying the title in the browser tab, providing a title for the page when it is added to favorites and displaying a title for the page in search engine results.
The HTML Global attributes are supported by the HTML <title> tag.
Chrome, IE, Firefox, Opera and Safari.
<!DOCTYPE html> <html> <head> <title>Title Example</title> </head> <body> <p>Hello World!!</p> </body> </html>
In the above example, we added a page title under the <head> tag.