← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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