As a simple example, we could change the color of the text of an element to red. It would be nice if we could set the color of as many elements as we want. We could use CSS for the styling, as shown below.
This is a paragraph with an id of dom2paragraph
For some reason this does not work.