← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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