← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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