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