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