← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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