← CodePrimer
CSS
Beginner
Basics
Three ways to apply CSS
What are inline, internal, and external CSS?
CSS application methods.
<!-- Inline -->
<p style="color: crimson;">Urgent</p>
<!-- Internal: <style> in head -->
<!-- External: -->
<link rel="stylesheet" href="styles.css">
Notes
External wins for reuse. Inline has highest specificity — use sparingly.
Keywords: inline · internal · external · cascade
Related
HTML
HTML headings h1–h6
How do I create page headings?
PHP
Embed PHP inside HTML
How do I mix PHP and HTML?
HTML
Paragraphs and line breaks
How do I break text into paragraphs?
CSS
CSS box model
Why is my element wider than expected?
PHP
PHP comments
How do I write comments in PHP?
HTML
Hyperlinks with href
How do I make a clickable link?