What is the significance of <head> and <body> tag in HTML?
Answer Posted / nashiinformaticssolutions
<head> tag provides the information about the document. It should always be enclosed in the <html> tag. This tag contains the metadata about the webpage and the tags which are enclosed by head tag like <link>, <meta>, <style>, <script>, etc. are not displayed on the web page. Also, there can be only 1 <head> tag in the entire Html document and will always be before the <body> tag.
<body> tag defines the body of the HTML document. It should always be enclosed in the <html> tag. All the contents which needs to be displayed on the web page like images, text, audio, video, contents, using elements like <p>, <img>, <audio>, <heading>, <video>, <div>, etc. will always be enclosed by the <body> tag. Also, there can be only 1 body element in an HTML document and will always be after the <head> tag.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are some good attributes?
What is html border?
What is web page in html?
How to link different web page from one webpage in html?
How do I specify html5?
What is difference between session storage and local storage?
How do I create a simple web page?
Are there any problems with using frames?
How do you make a picture into a background image of a web page?
What is the html document?
Is xhtml still used 2018?
Is there any way to keep list elements straight in an HTML file?
What is the purpose of iframe in html?
What is role html?
Is html5 better than flash?