← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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