← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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