← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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