← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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