← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

HTML and CSS lesson 8: Page structure: head and body · Set 480 · 40 questions
TalentJR

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

Answer key

  1. My drawings
  2. All about me
  3. My drawings
  4. <style>
  5. <meta charset="utf-8">
  6. True
  7. Riya’s Recipes
  8. in the body
  9. False
  10. </html>
  11. in the body
  12. My drawings
  13. False
  14. Class 7 Blog
  15. in the head
  16. <html>
  17. True
  18. in the body
  19. Riya’s Recipes
  20. Cricket Club
  21. True
  22. in the body
  23. <!DOCTYPE html>
  24. <!DOCTYPE html>
  25. My Hobbies
  26. Welcome!
  27. on the browser tab
  28. My Hobbies
  29. <link rel="stylesheet">
  30. Welcome!
  31. in the head
  32. <h1>
  33. Cricket Club
  34. <head>
  35. <html>
  36. <!DOCTYPE html>
  37. the body
  38. <html>
  39. Class 7 Blog
  40. <!DOCTYPE html>

Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids