← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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