← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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