Title and Head tag

How to set the title of the html page?
Head Tag!

Explanation

Example Code

<html>
<head>
</head>

</html>
It is like the head of a human, because it is used to identify the file.
head tag should lie inside "html" tag. head tag has many purposes
But at this point we will discuss only one of its tags <title>.
Other tags as <script>, <style>, <meta> will we taught later.
title
This tag is used to set the title of the page.
The title will be displayed on the left top corner of the browser page.
This tag should be present inside "title" tag as
<html>
<head>
<title> My Page
</title>

</head>
</html>

The Page will be blank, check the title of the page. You will have the title as MyPage.

Ask Questions

Ask Question