HTML attribute values can be changed using JavaScript. In this case we are changing img using DOM getElementById. Note that cssText lets you change multiple styles.