← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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