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