← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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