CSS is a language for specifying how documents are presented to users how they are styled, laid out, etc. A document is usually a text file structured using a markup language HTML is the most common markup language, but you may also come across other markup languages such as SVG or XML.
CSS SYNTAX
CSS is a rule-based language — you define rules specifying groups of styles that should be applied to particular elements or groups of elements on your web page. For example “I want the main heading on my page to be shown as large red text.”
The following code shows a very simple CSS rule that would achieve the styling described above:
h1 { color: red; font-size: 5em; } CSS is a rule-based language — you define rules specifying groups of styles that should be applied to particular elements or groups of elements on your web page. For example “I want the main heading on my page to be shown as large red text.”
The following code shows a very simple CSS rule that would achieve the styling described above:
h1 { color: red; font-size: 5em; }