← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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