← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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