← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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