What is CSS?
Css or cascading style sheet is a language used to style webpages.
CSS Stntax
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."
ex: h1 {
color: red;
font-size: 5em;
}
for example you style this heading by identifying the element it and adding the attributes that you wish to style it with.
Three types of CSS
- Internal css is when you style a webpage using css
in a the same document as your html file.
You would place your css between style tags
inside the head tag
- External Css is css froma different file linked to your html file
-
Inline css is css written insine the elements' tags an example is that this body tag is has inline css
setting the background color to teal