← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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