← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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