← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. on the browser tab
  2. Welcome!
  3. Class 7 Blog
  4. <!DOCTYPE html>
  5. Class 7 Blog
  6. </html>
  7. My drawings
  8. <style>
  9. <img>
  10. in the body
  11. Welcome!
  12. <table>
  13. All about me
  14. <!DOCTYPE html>
  15. <title>
  16. False
  17. True
  18. in the body
  19. <!DOCTYPE html>
  20. True
  21. <h1>
  22. in the head
  23. <!DOCTYPE html>
  24. in the head
  25. True
  26. <ul>
  27. Riya’s Recipes
  28. <html>
  29. Match report
  30. <html>
  31. in the head
  32. <p>
  33. True
  34. in the body
  35. Space Facts
  36. in the body
  37. Easy snacks
  38. in the body
  39. Welcome!
  40. in the head

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