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