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
How do I specify html5?
What is strong tag in html?
Why is tag used?
What is an xhtml element attribute?
How can you make an email link in html?
What is isxhtml?
What is web page in html?
Why is html important?
Why we use tags in html?
What are the new attributes provided in HTML5 for ?
What are the formatting tags?
What is the relationship between the border and rule attributes?
If I do not put will HTML 5 work?
What are major attributes?
Please give a regular expression (preferably perl/preg style), which can be used to identify the url from within a html link tag?