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