How do you include an external CSS file in an HTML document?

Prepare for the CodeHS Advanced HTML and CSS Test. Study comprehensive modules with multiple-choice questions, flashcards, tips, and explanations. Master advanced topics in HTML and CSS to excel in your exam!

Including an external CSS file in an HTML document is correctly done with the tag, particularly with the attributes rel and href specified. This allows the HTML document to link to the separate CSS file, which contains styles that can be applied to the HTML content.

The tag should be placed within the section of the HTML document. The rel attribute indicates that the linked file is a stylesheet, and the href attribute specifies the path to the CSS file. This method effectively separates content from design, promoting cleaner code and easier maintenance.

Using the