← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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