← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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