← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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