← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. <!DOCTYPE html>
  2. <ul>
  3. </html>
  4. False
  5. Welcome!
  6. <title>
  7. True
  8. in the body
  9. False
  10. <!DOCTYPE html>
  11. <!DOCTYPE html>
  12. on the browser tab
  13. in the body
  14. in the head
  15. <!DOCTYPE html>
  16. <link rel="stylesheet">
  17. in the body
  18. True
  19. False
  20. <style>
  21. Space Facts
  22. True
  23. All about me
  24. Welcome!
  25. Planets
  26. Art Gallery
  27. My Hobbies
  28. True
  29. in the body
  30. <img>
  31. False
  32. False
  33. </body>
  34. <html>
  35. in the head
  36. My drawings
  37. in the body
  38. in the head
  39. the body
  40. Easy snacks

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