← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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