← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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