0
0
HTMLmarkup~5 mins

Head and body sections in HTML - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of the <head> section in an HTML document?
The <head> section contains information about the page like its title, links to stylesheets, scripts, and metadata. It does not show content directly on the page.
Click to reveal answer
beginner
What kind of content goes inside the <body> section?
The <body> section holds all the visible content of the webpage, such as text, images, links, and other elements that users see and interact with.
Click to reveal answer
beginner
Why should the <title> tag be placed inside the <head> section?
The <title> tag sets the page title shown in the browser tab and search results. It must be inside <head> so browsers can find and display it properly.
Click to reveal answer
intermediate
Can scripts be placed in both <head> and <body>? What is the difference?
Yes, scripts can be in both. Scripts in <head> load before the page content, which can delay showing the page. Scripts in <body> usually load after content, improving user experience.
Click to reveal answer
beginner
What is metadata and where is it placed in an HTML document?
Metadata is information about the webpage like author, description, and character set. It is placed inside the <head> section and helps browsers and search engines.
Click to reveal answer
Where should the <title> tag be placed in an HTML document?
AInside the <body> section
BInside the <head> section
COutside both <head> and <body>
DInside a <footer> tag