← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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