← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. on the browser tab
  2. Cricket Club
  3. False
  4. the body
  5. My Hobbies
  6. False
  7. Art Gallery
  8. <table>
  9. Art Gallery
  10. <!DOCTYPE html>
  11. Cricket Club
  12. Class 7 Blog
  13. False
  14. Cricket Club
  15. My drawings
  16. My Hobbies
  17. Welcome!
  18. in the body
  19. <!DOCTYPE html>
  20. in the body
  21. <!DOCTYPE html>
  22. </body>
  23. </head>
  24. <h1>
  25. <!DOCTYPE html>
  26. in the body
  27. in the body
  28. Art Gallery
  29. </html>
  30. Space Facts
  31. in the head
  32. Cricket Club
  33. <title>
  34. True
  35. <meta charset="utf-8">
  36. My drawings
  37. <style>
  38. in the head
  39. Class 7 Blog
  40. True

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