← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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