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