← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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