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