← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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