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