Document Object Model
Client Side Events
innerHTML and style
In this lesson we are going to break it down to 2 simple things, innerHTML and style. innerHTML replaces content inside an element, style obviously styles an element.
If you have been following along in our lessons you already have a good idea what elements are. They are the “tags” that we have been referring too over and over again. Here are a short list of them
Give Element an ID or Class
This is one of the main reason why I keep stressing to give your elements id’s or classes. It doesn’t matter if they are div’s, body tags, p tags etc. The main idea here is to make sure that it makes sense and is logical. Let start out this lesson with our bare bones HTML and code from there.
Code Used in Today’s Lesson
Please keep in mind if you are on a mobile device you may not see the code properly. Click here to see the code properly if you are on a mobile device.
Please like, share and subscribe.
I hope you enjoyed the article. If I was able to help you please consider a tip for the content.
One Time Tip