Uses of Cascading Style Sheet.




  • Cascading Style Sheets are used to beautify an HTML page and provide a consistent look and feel for web pages of a web site.

  • The same can be possible using formatting tags of HTML tags as well. But if we were working on a website project of around 25 pages having different content to present on the same company website then we cannot have different designs and colour for each page, rather the website should look symmetric and consistent.

  • It can be made possible by copying and pasting the same designs and colour formats on every page, but is it worth it? Let us explore and provided an alternative and easier way to do so. 

  • The worst situation would occur when you need to change formatting e.g. colour of headers/ content/ links for the entire project. It would be next to impossible with a website having a complex structure with more than 25 pages.

  • CSS solves this problem by providing styling tags to control the formatting of web documents and in addition, also provides additional features to maintain consistent styling throughout the web site.

  • CSS is a file that stores the styling part of the entire website at the central location.

  • All we need is simply call the CSS styles to be applied for a webpage using <link> tag in the header section of the HTML document. CSS would render corresponding effects for the web page/pages without having to copy styles for all documents.

  • Also, it solves the effort while editing the website style, we simply need to edit one single CSS file and effects are so reflected in all documents using the said CSS.

Editor: Megha Golani Added on: 2020-07-02 16:55:15 Total View:372







Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---