Every element from an XHTML code that needs to
have a specific look - color, design, layout - will use a CSS code similar to this. It will include elements from the XHTML code such as:
body
h1, h2...
p
These elements will then be represented with certain attributes in CSS
class - uses a period . to assign attributes to a specific element
id - uses a hashtag # to assign attributes to a specific element
Revert to XHTML for comparison
There are two ways to assign colors to CSS properties:
#00FFCC - this relates to a very specific shade of color
white, blue... - this relates to the basic colors