← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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