बाहरी स्टाइल शीट केवल एक फ़ाइल को बदलकर पूरी वेब साइट का स्वरूप बदलने की सुविधा प्रदान करती है।
The external style sheet facilitates one to change the look of the entire web site by changing just one file.
Explanation:
The statement: "The external style sheet facilitates one to change the look of the entire website by changing just one file." is True.
Explanation:
An external style sheet is a separate .css
file that contains all the CSS rules for styling a website. This .css
file is linked to multiple HTML documents across the website. By using an external style sheet, you can manage and update the styling of the entire website by modifying just one file (the CSS file), rather than updating individual styles in each HTML document.
How it Works:
-
Create an External CSS File: You create a
.css
file (e.g.,styles.css
) and write your CSS rules in that file.Example (
styles.css
): -
Link the CSS File to HTML Documents: Each HTML document on your website links to the external
.css
file using the<link>
tag within the<head>
section.Example (
index.html
): -
Change the Look of the Entire Website: By changing the
styles.css
file, you can affect the styling of all HTML pages linked to it. For example, if you update the background color or font in thestyles.css
file, the change will automatically apply to all the HTML pages that reference this external stylesheet.Example of changing background color in
styles.css
:This change will instantly apply to all HTML files that include the
styles.css
file, making it very easy to maintain a consistent design across a website.
Key Benefits of External Style Sheets:
- Consistency: One style sheet can control the look of the entire website, ensuring consistency across all pages.
- Ease of Maintenance: If you need to change the look of your site, you only need to modify the external CSS file, and the changes will be reflected in all linked pages.
- Reduced Redundancy: You don't have to repeat CSS rules in each HTML file, which makes your code more efficient and easier to manage.
- Performance: Since the CSS file is cached by browsers, it can improve page load times as the browser only needs to download the CSS file once.