← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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