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