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