← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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