← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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