← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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