← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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