Where to put CSS
There are three ways to insert CSS
- Inline Style
- Internal Style sheet
- External Style sheet
1. Inline Style
Inline Styles come with basic features. To use Inline Styles, you can use style attribute with the relevant HTML element tag. Style attribute containg any CSS property.
Ex:
<p style = "align : center; color : Red"> This is a Paragraph uses CSS styles </p>
This example displays the text of "This is a Paragraph uses CSS styles" with center align and red color. All CSS properties related to the HTML element define as the value of style attribute and each property seperated by a semi colon. Value of the property define with a colon mark.