← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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