← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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