← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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