| |||||||||||||||||||||||||
|
![]() XHTML+CSS. Advantages are obvious Recently at all forums only also it is audible, standards, "validnost`", CSS-imposition, XHTML. Moreover, incessant disputes of supporters of two schools of web-design do not calm down: classical tabulared and new CSS-imposition that there is an imposition and that to whom seems more logical and convenient. This clause{article} I would not like to begin a new coil of this of " sacred war ", moreover its{her} purpose at all is not pereubezhdenie "tablichnikov" to transition to standards. I want to acquaint the reader with those conclusive advantages which CSS-imposition possesses only. And everyone should make conclusions for itself(himself). Also I want to give the preliminary comment to reasons resulted{brought} below for the benefit of XHTML+CSS. In my understanding CSS-imposition and XHTML - inseparable concepts, some readers can object at once to me supposedly to impose "validno" and semanticheski it is correctly possible and in HTML. But let, to work it is possible and under MS-DOS, in fact so? And who only has thought up this not clear GUI? Still I shall note, that some reasons for the benefit of css-imposition can seem to you familiar under books Dzh. Zel`dmana, D.Shi and other authoritative masters of web-design and you will be completely right. This clause{article} grows out the saved up practical and theoretical experience of the author. So 15 reasons for the benefit of transition on XHTML+CSS. 1. XHTML is the current published standard of a marking of the hypertext, replaced HTML. 2. XHTML is more consecutive, than HTML, that reduces probability of occurrence of mistakes. 3. New browsers "like" XHTML (in particular XHTML 1.0). Since he gives the additional functions inaccessible in HTML and has precise syntax. 4. XHTML is a subset of language XML which allows to expand considerably now already opportunities of formatting of documents, and in the future will allow is high-grade to use all new, probably, for the present not invented or not authorized technologies. 5. XHTML is a part of family of Web-standards (also including CSS and W3C DOM), that allows to supervise appearance and behaviour of page on different platforms, browsers and devices. 6. XHTML open a way to the world of the metadata, that, it is possible to assert{approve} with the big share of probability, will allow in the future to search machines more correctly and precisely to process the data in XHTML documents (read pages of a site). 7. XHTML allows to change the order of a content in the document, that also gives the advantages by search optimization of a site. 8. XHTML raises availability of a site to the greater circle of readers, such as people with defects of sight or coordination. It means, that in practice of the device of reading from the screen will not be brought down with sense, having seen in a body of the document a tag <table> and having tried to give out his{its} contents, as any tabulared information. Also an opportunity the main thing comfortably will be high-grade also to use a site even at absence of a mousy. 9. XHTML raises availability of a site also for the greater circle user-agent'ov: a handheld computer, mobile phones, digital projectors, and other devices with an output{exit} in a web. It means, that there is no necessity for creation of several versions of a site since one XHTML-pattern to which on search various tables of styles are applied undertakes more. 10. XHTML cancels necessity of creation of the separate version of page for a seal since at a conclusion of the document in a seal also there is an opportunity to set separate style. This advantage, as well as advantage in item{point} 6 to an inaccessible tabulared marking since preliminary formatting is created already in the body of the document. 11. XHTML+CSS allows to lower weight of the document essentially. Thus, you essentially reduce loading on the server, liaison channels and accelerate delivery of the ready document to the user. It is reached{achieved} because the XHTML-pattern does not contain elements of a marking since they are born{taken out} a CSS-file. For more evident acknowledgement{confirmation} of this reason we will address for example. Usually the difference between XHTML+CSS and HTML+CSS (tabulared) patterns makes from 300 up to 500 percent{interests} for the benefit of XHTML+CSS, in some cases she can be and more. We shall present an imagined site with total attendance to day of 10000 unique visitors. We shall impose it{him} all over again in the classical tabulared way. We shall receive - the size of a HTML-pattern of 20 KB with a file of styles in the size of 5 KB. So, for the first time given in a browser of the user a site zakehshiruet all images, scripts born in external files and files of styles, i.e. CSS-files. Also in calculations we shall accept for true that design of a site (CSS-file) will not be exposed to change within one year and will not demand repeated loading. Scripts and can be not taken into consideration the image, since they will not affect an end result. (20 KB * 10000 * 365 + 5*10000)/1024 = 71337 Mb or 71,3 Gb the traffic within one calendar year. We shall impose the same site on XHTML+CSS a method of CSS-imposition. On output{exit} XHTML, equal 5 KB and CSS - 10 KB (here it is necessary to note, that size CSS of a file usually grows in connection with that, that all data on formatting and visual performance of the document are born{taken out} in a CSS-file). We shall lead{we shall carry out} calculation. (5 KB * 10000 * 365 + 10*10000)/1024 = 17919,9 Mb or 18 Gb the traffic. In the given example the economy makes 71,3 Gb - 18 Gb = 53,3 Gb! Comments izlishni. 12. XHTML, at the expense of carrying out of elements and instructions of registration of the document in an external file, allows to load in a browser of the user a content maximum quickly and as he will start his{its} perusal, will continue to be loaded registration of a site. It allows, not waiting full loading of page to decide, whether the submitted information is essential, or it is necessary to leave{abandon} page and to continue information search on other sites. 13. XHTML the code is more logical and is simple, therefore it is much easier to understand him to the HTML-coder not written a code of page. 14. XHTML allows, having one pattern to connect to it{him} infinite set of the styles cardinally changing his{its} registration without uniform editing of the pattern. It is reached{achieved} at the expense of a manipulation by a free block marking of contents in a counterbalance rigidly set tabulared. 15. XHTML it is correctly processed by old browsers that reduces obstacles to his{its} use. And in new, at the expense of correct support CSS, it is possible to achieve improbable results. All these reasons also became my personal stimulus to transition to standards w3c and CSS-imposition. That and to you, actually, I wish! |
||||||||||||||||||||||||