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