There are three types of CSS: inline, internal, and external.
Inline CSS is used within an HTML tag. Internal CSS is used in the head section of an HTML document. External CSS is used in an external file that is linked to an HTML document.
For example, let’s say we wanted to make all of the text on our page red. We could do this by adding the following inline CSS to every HTML element on our page:
This is some red text.
This span contains red text..
Internal Embedded CSS
When about styling a web page, there are basically three ways to do it: inline, internal, and external. In this article, we’re going to focus on internal and embedded CSS.
Internal CSS is used when you want to apply styles to a single page. This is done by adding a
as you can see, we've defined two rules here - one for h 1 elements (which will turn them red), and one for p elements (which will make them 16px). These rules will only be applied to the current page - if you have another page with different HTML, these CSS rules won't affect it. Similarly, if you have multiple pages that use the same HTML but you want different styles on each page, you can use internal CSS again - just add your