CSS can be added to HTML documents in 3 ways:

     Inline - by using the style attribute inside HTML elements
     Internal - by using a <style> element in the <head> section
     External - by using a <link> element to link to an external CSS file


inline CSS

<h1 style="color:blue;">A Blue Heading</h1>
<p style="color:red;">A red paragraph.</p>

Internal CSS

Hello I am here...

Back to