← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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