← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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