← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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