← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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