← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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