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