← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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