CSSCSS26 min read

CSS Ways to Add

Learn all ways to add CSS: inline, internal, and external. Understand which one to use in real projects and which ones to avoid.

David Miller
December 8, 2025
4.7k228

There are three ways to add CSS to HTML.

1. Inline CSS

CSS written directly inside an element.

<p style="color: red;">Hello</p>

Use only for:

  • quick testing
  • very small changes

Avoid in real projects.

2. Internal CSS

CSS written inside