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