← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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