← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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