← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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