← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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