+ 1
What is the advantage of <head></head>?
2 Respostas
+ 1
the <head> tag is a compulsory part of your html code.
The head tag holds/contains some details about your code/webpages which are not visible on the webpage's body. Examples are:
1) Title: Defines the title of the webpage, visible are the browser's title/address bar and bookmarks.
2) Meta: contains some details for the browser (e.g, auto refresh) and search engines (e.g name, author, description, keywords, e.t.c)
3) Style: this contains your css code for the webpage styling.
Benefits of using head
1) you'll get indexed by search engines
2) your webpage logo/icon is linked in the head
3) your internal css also stays inside the head tag.
4) scripts in the head are loaded first.
0
there are no advantages. this is a mandatory and integral part of the HTML