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