← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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