- Create the following folder/file structure:
/ex_31
|-- 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?)