← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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