1. XHTML is the current published hypertext markup standard, replacing HTML.
2. XHTML is more consistent than HTML, which reduces the likelihood of errors.
3. New browsers "love" XHTML (in particular XHTML 1.0). Because it provides additional features not available in HTML and has a clear syntax.
4. XHTML is a subset of the XML language, which allows us to significantly expand the possibilities of document formatting, and in the future will allow us to fully use all new, possibly still unrecognized or unapproved technologies.
5. XHTML is part of the Web standards family (also including CSS and W3C DOM), which allows you to control the appearance and behavior of a page across platforms, browsers, and devices.
6. XHTML opens the way to the world of metadata, which can be argued with a high degree of probability that will allow search engines to more correctly and accurately process data in XHTML documents (read the pages of the site).
7. XHTML allows you to change the order of the content in the document, which also gives its advantages in search engine optimization.
8. XHTML improves site availability for a wider audience, such as people with visual or coordination impairments. This means that in practice, screen readers will not be confused when they see the <table> tag in the body of the document and try to display its contents as some tabular information. It will also be possible to fully and most importantly comfortably use the site even in the absence of a mouse.
9. XHTML increases the availability of the site also for a larger range of user-agents: PDAs, mobile phones, digital projectors, and other devices with access to the web. This means that it is no longer necessary to create several versions of the site, since one XHTML template is taken, to which various style sheets are applied on request.
10. XHTML eliminates the need to create a separate version of the page for printing, because when printing a document to print, it is also possible to set a separate style. This advantage, as well as the advantage in paragraph 6 of the inaccessible tabular markup, because Pre-formatting is already created in the body of the document.
11. XHTML + CSS can significantly reduce the weight of the document. Thus, you significantly reduce the load on the servers, communication channels and accelerate the issuance of the finished document to the user. This is achieved due to the fact that the XHTML template does not contain markup elements, since they are taken out the css file. For a more visual confirmation of this argument, we turn to an example. Typically, the difference between XHTML + CSS and HTML + CSS (tabular) templates ranges from 300 to 500 percent in favor of XHTML + CSS, in some cases it may be more. Imagine an imaginary site with a total attendance of 10,000 unique visitors per day. We make it first in a classic tabular way. We get - the size of the HTML template is 20 KB with a style file of 5 KB. So, for the first time, the site issued to the user's browser caches all images, scripts rendered into external files and style files, i.e. CSS files. Also in the calculations we take for granted that the site design (CSS-file) will not be subject to change during the year and will not require re-loading. Scripts and images can be ignored, because they will not affect the final result. (20 KB * 10000 * 365 + 5 * 10000) / 1024 = 71337 MB or 71.3 GB of traffic during the calendar year. We build the same site on XHTML + CSS using CSS layout. The output of XHTML is 5 Kb and CSS is 10 Kb (it should be noted here that the size of the CSS file usually increases due to the fact that all the data on the formatting and the visual presentation of the document are put into the CSS file). We will carry out the calculation. (5 Kb * 10000 * 365 + 10 * 10000) / 1024 = 17919.9 Mb or 18 Gb traffic. In this example, the savings is 71.3 GB - 18 GB = 53.3 GB! Comments are superfluous.
12. XHTML, due to the removal of elements and instructions for formatting a document into an external file, allows the user to upload content to the user's browser as quickly as possible, and as he proceeds to read it, the site design will continue to load. This allows, without waiting for the full page load, to decide whether the presented information is significant, or whether it is worth leaving the page and continue searching for information on other sites.
13. XHTML code is more logical and simple, so it is much easier for HTML coders who have not written the page code to understand it.
14. XHTML allows, having one template, to connect to it an infinite number of styles that drastically change its design without a single edit of the template itself. This is achieved by manipulating the free block markup of the contents as opposed to a rigidly given table.
15. XHTML is handled correctly by older browsers, which reduces barriers to its use. And in the new, due to the correct support of CSS, you can achieve incredible results.
Source: https://habr.com/ru/post/3741/
All Articles