← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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