← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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