← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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