← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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