← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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