← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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