← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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