B4Coder
0%
LessonAbout 6 min

Chapter 8 · Lesson 4 of 5

04. Attributes and innerHTML

Change an image's src and alt or a link's href from JavaScript, and use innerHTML when the new content has tags in it.

Opening the lesson…