This repo contains a few exercises for manipulating your DOM with Vanilla JavaScript.
- Fork and clon this repo
- Open the index.html page on Chrome (or another browser with development tools).
- Follow the directions below for each exercise.
- Use document.createElement() to create a few
tags.
- Use .innerText or .innerHTML to put your favorite animals in each
tag.
- Use [element].append() to append your
tags into the HTML
- Use document.createElement() to create one
tag.
- Create an array of your favorite animals
- Use a for loop and .append() to put all your favorite animals into the
tag
- Use .append() to append that
tag into the HTML
- Create an event listener that listens for a 'click' on your button
- When the button is clicked, change the class from blue to black