← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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