← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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