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