How to link CSS to HTML
Add a <link> tag inside the <head> of your HTML that points to your CSS file.
<head>
<link rel="stylesheet" href="style.css">
</head>
- If
style.cssis in a folder, include it:href="css/style.css". - File names are case-sensitive once online.
Style.cssandstyle.cssare different files. - Upload the HTML and CSS files together, in one zip.
Styles missing once it's live? See CSS, images or files missing after upload.
Video Guide
Updated on: 10/11/2026
Thank you!
