+ 1

What is the use of head tag?

9th May 2020, 5:47 PM
Indumathi R
Indumathi R - avatar
3 Answers
+ 1
When you open any web site the 1) The Head Tag will be loaded first in the Browser. 2)And then, Body Tag will be executed. See this example. 1) The alert() get runs first. Then 2) <div> tag get executed. <!DOCTYPE html> <html> <head> <title>Page Title</title> <script>alert("I get executed first") </script> </head> <body> <div>I get executed second.</div> </body> </html>
9th May 2020, 7:46 PM
Dasarath Singh
+ 1
Once check solo lessons
11th May 2020, 10:38 AM
A S Raghuvanshi
A S Raghuvanshi - avatar