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