← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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