← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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