← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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