← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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