← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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