DEV Community

Cover image for What is the correct HTML for referring to an external style sheet?
ProgrammerMoney
ProgrammerMoney

Posted on • Updated on

What is the correct HTML for referring to an external style sheet?

TL;DR Summary

Here is the correct HTML for style sheet referral:
[ copy-paste and thank me later :) ]

<link href="style.css" rel="stylesheet" type="text/css" />
Enter fullscreen mode Exit fullscreen mode

Also, make sure you put this line either in the <head> or somewhere near the top of the page like this:

external style sheet code

And this is it.

Until next time,
Will
Senior Developer & SEO Algo Specialist

Top comments (0)