← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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