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>
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>
← Back to Main
Download Example HTML File with CSS