Frontend Engineering, Volume II

CSS: Example—1b Add Inline Styles

© 2013, Martin Rinehart


Create an HTML page using your template. Add a little content using inline styles, like these:

<h1>CSS 1b Examples</h1>

<p style='background-color: gold'>All that glitters!</p>

<p style='background-color: silver'>The color of money.</p>

You will learn much from typing lines like these yourself. You'll have more fun if you concentrate on the point we're making, but use a little creativity in the words, colors and other styles you use.

That should give you a result like this:

Screen shot of page with gold- and silver-colored paragraphs.

(Do those look like precious metals to you?)


Feedback: MartinRinehart at gmail dot com

# # #