← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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