How to Use Inline CSS

To apply inline styles, use the style attribute directly inside an element:

<p style="color: blue; font-size: 20px;">This is a blue paragraph.</p>

Live example:

This is a blue paragraph using inline CSS!

You can also use internal styles in a <style> tag like this:

<style>
p { color: blue; font-size: 20px; }
</style>
Inline CSS is good for quick edits. For larger projects, use external or internal stylesheets.
← Back to Main Download Example HTML File with CSS