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