Khan Academy or Scratch Wikia
Advertisement
Css3

Cascading Style Sheets, also known as CSS, is how HTML items are stylized.


Example[]

CSS

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[]

CSS button

There are three different ways to use CSS.

  1. In a stylesheet or <style> tag, known as external styling. That usage is what is pictured above.
  2. 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>

Sites with CSS lessons[]

Featured users that know CSS[]

Advertisement