← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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