← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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