← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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