← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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