You can place CSS right in the thick of your HTML code and this method of using CSS is referred to as inline css.
Inline CSS has the highest priority in comparision to external and internal CSS. This means that by using inline CSS, you can override styles that are defined in external or internal.So use it sparingly as inline CSS detracts from the true purpose of CSS.
CSS Inline - An HTML Attribute
Every HTML tag uses CSS which is built in nature of the CSS. You have to specify the desired CSS properties with the style HTML attribute, if you want to add a style inside an HTML element all. Let's add some style to a paragraph tag.
CSS Code:
<p style="background: blue; color: white;">A new background and
font color which uses inline CSS</>
O/P:
A new background and font color which uses inline CSS