← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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