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