← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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