← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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