← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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