← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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