← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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