← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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