← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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