← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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