← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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