← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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