January 2018
Intermediate to advanced
678 pages
20h 16m
English
In this section, we continue to use radio buttons and checkboxes, but our main focus will be on something new and super exciting—using JavaScript to dynamically update a web page’s CSS. There are quite a few JavaScript techniques for manipulating a web page’s CSS. In this section, we show you two such techniques.
class AttributeAs you know, you can modify the appearance of an element with the help of the element’s class attribute and a class selector rule. For example, the following code fragment applies italics to a div element by including class="italic" in the div start tag and providing a .italic class selector rule:
<style> .italic {font-style: italic;} .bold ...Read now
Unlock full access