← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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