← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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