Submitted by masonh4206 on 11/12/2011 06:49 PM Flag This Paper
Join Now
The three types of CSS styles have many advantages and disadvantages when writing the code for a personal or business related web site. External style sheets have their advantages in the creation of web sites in that it can be used to format the content of more than one web page by using one code entry. An additional advantage is that multiple HTML elements can be edited with classes for many site codes or documents. The cons or disadvantages of external style sheets
http://dev.fyicenter.com/Interview-Questions/CSS/What_are_the_advantages_disadvantages_of_the_var.html
What are the advantages/disadvantages of the various style methods?
External Style Sheets
Advantages
* Can control styles for multiple documents at once
* Classes can be created for use on multiple HTML element types in many documents
* Selector and grouping methods can be used to apply styles under complex contexts
Disadvantages
* An extra download is required to import style information for each document
* The rendering of the document may be delayed until the external style sheet is loaded
* Becomes slightly unwieldy for small quantities of style definitions
Embedded Style Sheets
Advantages
* Classes can be created for use on multiple tag types in the document
* Selector and grouping methods can be used to apply styles under complex contexts
* No additional downloads necessary to receive style information
Disadvantages
* This method can not control styles for multiple documents at once
Inline Styles
Advantages
* Useful for small quantities of style definitions
* Can override other style specification methods at the local level so only exceptions need to be listed in conjunction with other style methods
Disadvantages
* Does not distance style information from content (a main goal of SGML/HTML)
* Can not control styles for multiple documents at once
* Author can not create or control classes of elements to control multiple element types within...