How To Link CSS To HTML?

Create a CSS file with a .css extension

Add a link tag inside the HTML head section

Set the rel attribute to stylesheet

Set the href attribute to the CSS file path

Save both files

Open the HTML file in a browser

Suggested for You

Trending Today