← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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