← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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