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