← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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