← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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