CSS banner image.

This article is a follow up to Expressing colors in HTML and is part of a series of posts aiming at helping learners transition from HTML to HTML and CSS. One of the small challenges in moving from HTML to CSS is that the attribute names are not standardised. As you can see in the example below, while both HTML and CSS use the color attribute for text colour, HTML‘s bgcolor becomes background-color in CSS.

See the Pen CSS color by David Fox (@foxbeefly) on CodePen.

Read my CSS primer if you are interested in learning the basics of CSS.

By MisterFoxOnline

CAT Educator

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.