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