← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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