← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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