← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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