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