What are the advantages and disadvantages of Cascading
Style Sheets?



What are the advantages and disadvantages of Cascading Style Sheets?..

Answer / rakesh kumar nautiyal

Advantages and Disadvantages
Greater Control. Style sheets allow far greater control
over the appearance of a document. Many different elements
can be defined and customised, including margins, indents,
font size, line and letter spacing. In addition, elements
can be positioned absolutely on the page.

Separation of Style and Content. By ensuring that the style
and content of a document are kept separate, data is kept
more coherent. In this way, as technologies such as XML and
databases increase, there will be more scope for
integration of existing HTML documents.

Accessibility. Similarly, with the separation of style and
content, documents are made more accessible to those with
disabilities. When style sheets are used, software such as
screen-readers are less likely to be confused by spurious
code. For further information on accessibility issues,
please refer to the W3C's page on the Accessibility
Features of CSS.

Smaller Documents. Because all tags or properties need only
be defined once within a document, or even within a
separate document, filesize can be reduced considerably.

Easier Site Maintenance. As it is possible to link many
pages to one individual style sheet, any sitewide changes
can be made by simply changing the one file that the pages
link to, instead of all the individual files.

Browser Support. This is the one major drawback to style
sheets. They are only supported at all by IE 3 and above
and Netscape 4 and above, but even then, the way in which
the two browsers interpret them can vary considerably.
However, older browsers will still display your website,
simply ignoring the elements they do not understand.

Is This Answer Correct ?    18 Yes 5 No

Post New Answer

More PHP Interview Questions

Define about declare construct?

1 Answers  


How to get number of days between two given dates using PHP?

1 Answers  


What is the purpose of constant() function?

1 Answers  


Explain mysql_errno()?

1 Answers  


Why php is sometimes called as embedded scripting language?

1 Answers  


What is super keyword in php?

1 Answers  


What is php.ini & .htacess file?

1 Answers  


What is baseurl?

1 Answers  


When you will get the error "Cannot add header information"?

2 Answers  


How to receive a cookie from the browser?

1 Answers  


class Database { public static $_instance; public static function getInstance() { if(!isset(self::$_instance)) self::$_instance = new Database(DB_SERVER, DB_USER, DB_PASS, DB_NAME); print_r(self::$_instance); return self::$_instance; } } can any one explain "self::$_instance = new Database(DB_SERVER, DB_USER, DB_PASS, DB_NAME);" this line

1 Answers  


How to apply Cake php ajax pagination?

1 Answers  


Categories