← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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