← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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