Where in an HTML document is the correct place to refer to an external style sheet?

Link external files and stylesheets to HTML using the tag. To link a stylesheet, use the tag and set the value of "rel" to "stylesheet", "type" to "text/css", and "href" to a link to the external stylesheet file.

Example:

<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
<!-- External Style Sheet -- >
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<!-- Content of the webpage goes here -- >
</body>
</html>

Go from files to website in seconds.

Start a free trial for 7 days — no credit card required

Get Started for Free