← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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