← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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