← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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