← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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