← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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