Setting page title
Notes:
HTML title tag :
HTML title tag is used to set the title of the webpage.
Total number of characters in the title string should not exceed more than 60 characters.
title tag is the paired tag must and should be written inside the head tag.
For title tag, head tag is the parent tag.
For head and body tag, html tag is the parent tag.
For html tag head and body tags are children tags.
For head tag title tag is the child tag.
So, children / child tags should be indented one level inside from the parent tag for better readability and understand-ability.
Example Code:
<html>
<head>
<title>My first web page</title>
</head>
<body>
</body>
</html>
Interview Questions:
1. title tag must be written within ______________ section.
a. div
b. form
c. head
d. body
Answer: c