codegurukool.com · Free coding tutorials & online compiler

Home › CSS Tutorial › CSS how to

CSS how to

Inline, internal or external.

External files linked with link are best. Internal uses style in the head. Inline uses the style attribute.

Example code

<style>p{color:teal}</style>
<p>Internal</p>
<p style='color:purple'>Inline</p>
<!-- <link rel='stylesheet' href='style.css'> -->

Run this code in the online editor

← CSS syntaxCSS comments →