Lesson 2 of 50 · css
Adding CSS to a Page
Duration: 7 mins
There are three ways to include CSS:
- Inline –
styleattribute on an element. - Embedded –
<style>block inside<head>. - External –
<link rel="stylesheet" href="style.css">.
External CSS is the most maintainable and cache‑friendly.
Example: External Stylesheet Link
<link rel="stylesheet" href="/css/main.css" />