← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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