← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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