← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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