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