CSS stands for “Cascading Style Sheet” and its one of the core elements of a website, if you only use HTML, you will create a useless website because its unusable. In the end it is the combination of both, which makes your website usable.
There are three ways to implement CSS in your HTML-code
- Inline 2. Internal and 3. External.
For Inline CSS, adds everything in the opening tag of an element. Therefore you just have to add ‘style=”property: value;”‘.
For the Internal CSS, you have to add a style-tag between the head-tags.
External CSS, which separates the HTML- and CSS-code, completely. It is essential to add a reference between the head-tags, through that you connect both documents. To do so, you have to add <link rel=”stylesheet” href=”[name of the document].css”>.
And the Code from the stylesheet.css