Many elements, same look

See more about:

Use a CSS class to make elements look the same. You can use the same class on any number of elements.

Here’s an example that uses one class on two elements.

.warning {
  color: red;
  font-weight: bold;
}
...
<p>Connect the laser death ray module to the power supply.</p>

<p class="warning">Make sure the power cord is not plugged into the wall.</p>

<p>Attach the telescopic sight to the top of the laser death ray module.</p>

<p class="warning">Make sure the telescopic sight is not giggling during this procedure.</p>

Notice the . on line 1. You must use it to create a class.


Be an author

Want to write your own CoreDogish textbook? Check out FlippedTextbook.Com.

How to...

Lessons

User login


Dogs