Introduction to CSS

CSS (Cascading Style Sheets) is a language used to style (set size, colors, etc) HTML elements (links, text, buttons, etc).

A Quick Example

If I have the following element:

<div>Banana</div>

and I want the text to have a yellow background, I can do this:

<div style="background-color: yellow">Banana</div>

The result:

A web page with the word Banana with a yellow colored background

Next: Styles in the HTML (Inline CSS)

Comments

Leave a comment

What color are brown eyes? (spam prevention)
Submit
Code under MIT License unless otherwise indicated.
© 2020, Downranked, LLC.