W3.CSS is a stylesheet library, not a programming language or a separate compiler. Add its CSS file to an ordinary HTML project.
What you need
- An editor and browser
- An HTML file
- A local copy of w3.css from the official download page
Set up your environment
- Open the official W3.CSS download instructions. Save the stylesheet as
w3.cssin your practice folder. - Create
index.htmlnext to the stylesheet. Use the example below. - Open the HTML file in your browser. The local stylesheet means the example can work offline once the file has been downloaded.
- Try changing
w3-tealto another colour class described in the W3.CSS tutorial.
Your first check
Save as index.html
<!doctype html>
<html lang="en"><head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="w3.css"><title>W3.CSS check</title>
</head><body><div class="w3-container w3-teal"><h1>Hello, W3.CSS</h1></div></body></html>Run or verify
Open index.html in a browser.Expected result: A heading appears inside a teal container.
Common setup problems
- If the page looks unstyled, verify that w3.css and index.html are in the same folder.
- Do not name your downloaded stylesheet w3.css.txt.
Official documentation
Guide reviewed 17 November 2026. Check the linked vendor documentation for current supported versions and operating systems.