← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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