← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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