← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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