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