← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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