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