Introduction:

In this article we are going to explain what is title tag in html or how to set title of html page with example.

Description:

HTML title tag is used to set a title name of your webpage. It is necessary for Search Engine Optimization (SEO).

The HTML title tag must be used inside the <head> tag.

The title of the page is displayed on the title bar of the browser.

Let's see the example of HTML title tag.

 !DOCTYPE html>
<html>
<head>
    <title>this is my web page title.</title>    
</head>
<body>
    <p>Welcome to sqltutorialspoint.com.</p>  
</body>
</html>

 

Output:

 what is the use of title element in an html document

In above image we highlighted title name of webpage.

I hope this article will help to you after reading.

 Let's check live example

0 comments


Leave a comment

Make sure you enter the (*) required information where indicated. HTML code is not allowed.

You may also like