Cascading Style Sheets, also known as CSS, is how HTML items are stylized.
Example[]
For example, the image above is from the KAOS CSS page. It shows part of how the founder of this wiki, Vanilla Dazzle's username appears within the chat. Her name appears in the hex color #D32F2F
which is a shade of red. There is also code to shadow that text in the exact same shade of red.
Usages[]
There are three different ways to use CSS.
- In a stylesheet or
<style>
tag, known as external styling. That usage is what is pictured above. - Inline code, like the following example:
<element style="parameter: value;">TextContent</element>
3. Applied using JavaScript or jQuery. Here is an example using jQuery.
<element id="el1"></element>
<script type="text/javascript">
$("#el1").css("color", "blue");
</script>