Changing Attributes and Element Style
In this lesson, we change the style of attributes and elements.
We'll cover the following
Modifying the document tree allows you to change not only elements, but also attributes (with the setAttribute()
method). It provides a couple of ways to change the appearance of the web page on-the-fly.
In Chapter 4 (Listing 3-14), you displayed a table that defines the logical XOR operation, as shown in the image below:
Get hands-on with 1200+ tech skills courses.