← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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