← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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