External CSS is a styling method where CSS rules are stored in a separate .css file and linked to HTML documents. It helps maintain a consistent and organized design across multiple web pages.
A single CSS file can style multiple HTML pages efficiently.
Improves code reusability and simplifies website maintenance.
Keeps the HTML structure separate from presentation and design styles.
Link an External CSS to HTML
An external CSS file is connected to an HTML document using the <link> tag inside the <head> section. This allows the webpage to apply styles stored in a separate CSS file.
The rel="stylesheet" attribute specifies the relationship as a stylesheet.
The href attribute defines the path to the external CSS file.
Linking external CSS helps maintain consistent styling across multiple pages.