HTML Worksheet: Page Structure
Code tip (Head for the browser, body for you): <!DOCTYPE html> first, then <html> with <head> and <body> inside. The head holds <title> (shown on the browser tab), <meta>, <style> and <link>. The body holds everything you see on the page.
NameDateTime takenScore ___ / 40
- 1.📄 Where does <h1> go: in the head or in the body? (a) in the head (b) in the body
- 2.📄 Where does <a> go: in the head or in the body? (a) in the body (b) in the head
- 3.Which of these goes in the body? (a) <p> (b) <title> (c) <link rel="stylesheet"> (d) <style>
- 4.🔢 In a basic web page file, which comes FIRST? (a) <!DOCTYPE html> (b) </body> (c) </head> (d) <head>
- 5.🔢 In a basic web page file, which comes first: “</head>” or “<!DOCTYPE html>”? (a) </head> (b) <!DOCTYPE html>
- 6.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <a> (c) <link rel="stylesheet"> (d) <title>
- 7.🔢 In a basic web page file, which comes first: “<body>” or “</head>”? (a) </head> (b) <body>
- 8.📄 Which part holds everything you see on the page? (a) the title (b) the head (c) the body (d) the doctype
- 9.📄 Where does the text of <title> appear? (a) at the bottom (b) in a big heading (c) on the browser tab (d) nowhere
- 10.📄 What is the first line of an HTML5 page? (a) <body> (b) <!DOCTYPE html> (c) <head> (d) <html>
- 11.True or false: <img> goes in the body. (a) False (b) True
-
12.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Riya’s Recipes</title>
</head>
<body>
<h1>Easy snacks</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) We won by 5 runs. (b) Riya’s Recipes (c) body (d) Easy snacks -
13.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>My drawings</h1>
<p>Here is my best one.</p>
</body>
</html> (a) My drawings (b) My Hobbies (c) index.html (d) Here is my best one. - 14.True or false: <title> goes in the head. (a) False (b) True
- 15.True or false: <ul> goes in the body. (a) False (b) True
-
16.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>Match report</h1>
<p>I like to read.</p>
</body>
</html> (a) Art Gallery (b) index.html (c) Match report (d) I like to read. - 17.True or false: <link rel="stylesheet"> goes in the body. (a) True (b) False
- 18.True or false: <table> goes in the body. (a) True (b) False
- 19.🔢 In a basic web page file, which comes first: “<html>” or “<body>”? (a) <body> (b) <html>
-
20.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>My drawings</h1>
<p>Here is my best one.</p>
</body>
</html> (a) body (b) My Hobbies (c) My drawings (d) Here is my best one. - 21.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
-
22.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Mars is red.</p>
</body>
</html> (a) Mars is red. (b) body (c) My Hobbies (d) Welcome! -
23.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Space Facts</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) index.html (b) Thanks for visiting. (c) Welcome! (d) Space Facts -
24.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>Match report</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) Thanks for visiting. (b) Match report (c) index.html (d) Class 7 Blog -
25.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Here is my best one.</p>
</body>
</html> (a) Here is my best one. (b) Cricket Club (c) Welcome! (d) body -
26.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Mars is red.</p>
</body>
</html> (a) Mars is red. (b) Cricket Club (c) body (d) Welcome! - 27.📄 Where does <style> go: in the head or in the body? (a) in the body (b) in the head
- 28.Which of these goes in the head? (a) <h1> (b) <a> (c) <p> (d) <meta charset="utf-8">
- 29.Which of these goes in the head? (a) <p> (b) <link rel="stylesheet"> (c) <h1> (d) <ul>
- 30.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
- 31.🔢 In a basic web page file, which comes first: “</body>” or “</head>”? (a) </body> (b) </head>
-
32.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Space Facts</title>
</head>
<body>
<h1>All about me</h1>
<p>I like to read.</p>
</body>
</html> (a) body (b) Space Facts (c) All about me (d) I like to read. - 33.True or false: <img> goes in the head. (a) True (b) False
-
34.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>Easy snacks</h1>
<p>Here is my best one.</p>
</body>
</html> (a) Cricket Club (b) Easy snacks (c) Here is my best one. (d) index.html - 35.🔢 In a basic web page file, which comes first: “</head>” or “<body>”? (a) <body> (b) </head>
- 36.True or false: <h1> goes in the body. (a) True (b) False
- 37.🔢 In a basic web page file, which comes first: “<head>” or “<body>”? (a) <body> (b) <head>
- 38.📄 Where does <p> go: in the head or in the body? (a) in the body (b) in the head
-
39.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Space Facts</title>
</head>
<body>
<h1>My drawings</h1>
<p>Here is my best one.</p>
</body>
</html> (a) Here is my best one. (b) My drawings (c) index.html (d) Space Facts - 40.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “</head>”? (a) </head> (b) <!DOCTYPE html>
Answer key
- in the body
- in the body
- <p>
- <!DOCTYPE html>
- <!DOCTYPE html>
- <a>
- </head>
- the body
- on the browser tab
- <!DOCTYPE html>
- True
- Easy snacks
- My Hobbies
- True
- True
- Art Gallery
- False
- True
- <html>
- My drawings
- in the body
- Welcome!
- Space Facts
- Class 7 Blog
- Welcome!
- Welcome!
- in the head
- <meta charset="utf-8">
- <link rel="stylesheet">
- in the head
- </head>
- All about me
- False
- Cricket Club
- </head>
- True
- <head>
- in the body
- Space Facts
- <!DOCTYPE html>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids