← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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