Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 594 Bytes

ex_31.md

File metadata and controls

35 lines (31 loc) · 594 Bytes

Exercise 31

  • Create the following folder/file structure:
/ex_31
  |-- index.html

index.html

  • Create a basic HTML document
  • Create a script tag on the document head element
  • Add the following html code
<!DOCTYPE html>
<html>
  <head>
    <title>Products</title>
  </head>
  <body>
    <ul>
      <li>Bannana</li>
      <li>Apple</li>
      <li>Peach</li>
      <li>Eggs</li>
      <li>Tomatto</li>
      <li>Lettuce</li>
      <li>Milk</li>
    </ul>
  </body>
</html>
  • Select the ul element
  • Remove all list items using the innerHTML property (easy, right?)