CSS examples
This webpage uses five methods to style the text with CSS. The entire documentis styled with CSS from an external file, bootswatch-cerulean.css, which has been linked to in the document's header section.
- The list items are styled with global CSS that is written in the style section of the document's header.
- This individual item contains additional styling written in the document's header that applies to the item's class. Note that it overrides the global styling.
- This individual item contains additional styling written in the document's header that applies to the item's id. Note that it overrides the global and class styling.
- This individual item contains additional styling written in the document's tag. Note that it overrides the global, class, and id specific styling.
If you would like to learn more about how to write and use CSS, I recommend the Codecademy tutorial