The use of style sheets, especially the external ones, which allow separate content from presentation, provides important advantages: 1 -.
Easier to change the style of a Web site.
Thus, by changing style sheets change the presentation of all the pages that make use of such sheets.
If a good separation between content and presentation, you can change the visual style Web portal only modify their stylesheets.
2 -. Code clearer and simpler.
free code presentation tags, using external style sheets, is more compact, clear and easy to read, so maintenance is easier. The HTML code would only present the content and structure of the document, leaving the entire presentation to style sheets.
The code structure is very clear, almost completely reduced to a textual content divided into blocks, titles, text, lists, links, images, tables ... The number of different HTML tags and attributes is reduced significantly.
3 -. More compact code.
When taking all aspects of presentation and layout to the style sheets, the code created is much more compact. Sometimes the code can be reduced by half or even less.
4 -. Reducing the load times of pages.
As the code is more compact, you reduce the load times of pages, making it easier for visitors-as access to them.
Note that the associated style sheets are downloaded into the browser the first time they are needed. Thereafter, each time a page requires a sheet style that has already been used, the browser looks in its cache instead of downloading it from the network.
code easier to maintain.
Maintaining that pages with content and presentation separation is easier and more productive, having a more compact code.
5 -. Customizing the style.
Some users-as, by choice or necessity, require changing the layout of the pages. If you use style sheets to provide users, as the implementation of their own leaves art, such as high contrast colors or accessibility.
6 -. Better support different devices.
Separate content and structure of the presentation easy access from a wide variety of devices (small screens, PDAs, mobile art, etc.).. This will avoid creating different versions of pages depending on the device, thereby saving time and money.
Still, if you want more control over the layout of the pages, defines several different style sheets and apply one or the other depending on the user device-a.
CSS styles to define the type of device it is displayed. This is what is called "control means".
Easier to change the style of a Web site.
Thus, by changing style sheets change the presentation of all the pages that make use of such sheets.
If a good separation between content and presentation, you can change the visual style Web portal only modify their stylesheets.
2 -. Code clearer and simpler.
free code presentation tags, using external style sheets, is more compact, clear and easy to read, so maintenance is easier. The HTML code would only present the content and structure of the document, leaving the entire presentation to style sheets.
The code structure is very clear, almost completely reduced to a textual content divided into blocks, titles, text, lists, links, images, tables ... The number of different HTML tags and attributes is reduced significantly.
3 -. More compact code.
When taking all aspects of presentation and layout to the style sheets, the code created is much more compact. Sometimes the code can be reduced by half or even less.
4 -. Reducing the load times of pages.
As the code is more compact, you reduce the load times of pages, making it easier for visitors-as access to them.
Note that the associated style sheets are downloaded into the browser the first time they are needed. Thereafter, each time a page requires a sheet style that has already been used, the browser looks in its cache instead of downloading it from the network.
code easier to maintain.
Maintaining that pages with content and presentation separation is easier and more productive, having a more compact code.
5 -. Customizing the style.
Some users-as, by choice or necessity, require changing the layout of the pages. If you use style sheets to provide users, as the implementation of their own leaves art, such as high contrast colors or accessibility.
6 -. Better support different devices.
Separate content and structure of the presentation easy access from a wide variety of devices (small screens, PDAs, mobile art, etc.).. This will avoid creating different versions of pages depending on the device, thereby saving time and money.
Still, if you want more control over the layout of the pages, defines several different style sheets and apply one or the other depending on the user device-a.
CSS styles to define the type of device it is displayed. This is what is called "control means".
0 comments:
Post a Comment