← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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