← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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