Inline CSS:
Add CSS style to an HTML element using the style attribute.
e.g. <h1 style="color:blue;">This is a heading</h1>
Internal CSS:
Add CSS style to an HTML document using the <style> element inside the <head> element.
e.g.
<style>
h1 {color:blue;}
</style>
<h1>This is a heading</h1>
External CSS:
Add CSS style to an HTML document by loading an external CSS file.
e.g.
sample.html:
<link rel="stylesheet" href="styles.css">
<h1>This is a heading</h1>
style.css:h1 {color:blue;}