CSS- CASCADING STYLE SHEET
MERITS:
Separating the style from content has many benefits, but has only become practical in recent years due to improvements in popular web browser’s CSS implementations. It is easily understandable to human and search engines. CSS helps in faster downloading of the pages. One benefit is that the styles need to be downloaded only once, on the first page the user visits.
The style sheet goes into the browser’s cache, and thus need not be downloaded again for all other pages that use that style sheet. A single change to the CSS style sheet file can affect the entire site. Changes to site appearance can be cheaper, easier, faster — thus more likely to happen. Changes to the site appearance can be changed without altering the content.
Usage of CSS with HTML can create stronger web pages. The website that is formed with CSS is compatible with almost all browsers. The web pages created using CSS are print friendly. CSS helps in positioning the elements according to the web developer’s wish in the web applications. CSS allows consistency to all the web pages. CSS increases the flexibility in presenting the content.
The size of the HTML page is reduced since the styles and layout is removed from them. This also reduces the bandwidth requirements for the servers hence it takes very less time to download the page.
The search engine displays the content in the start of the HTML code, in CSS we can move the navigation to the bottom of the page so that the search engine would display our content. The usage or advantages of CSS increases as the size of the website increases. It is very effective for a bigger website. Various styles can be used with the help of CSS.
DEMERITS:
One of the major disadvantages of separating style and content is that complex layouts can be difficult to create. For users inexperienced in writing CSS, complex layouts can be difficult to recreate.
Additionally, many browsers render certain CSS rules differently than others, meaning that a layout, which looks correct in one browser, may look quite different in another. In CSS it is not possible for us to change the style of a particular page, since it has only replaced all option.
CSS has a poor layout controls for flexible layouts. CSS cannot be used for high graphical designs. This is because several backgrounds are used for creating high graphical designed pages, which is not possible with CSS.
