CSS was introduced together with HTML 4, to provide a better way to style HTML elements.
CSS can be added to HTML in the following ways:
Inline - using the style attribute in HTML elements
Internal - using the element in the section
External - using an external CSS file
The preferred way to add CSS to HTML, is to put CSS syntax in separate CSS files.