← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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