← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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