← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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