← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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