CSS

Domain Hosting image
Web Hosting
Dedicated server
ssl certificate
Web Design image
Email
In the previous chapters, you have seen the skeleton of XML and its components. Now it is time to look at another important requirement displaying XML in the browser. Whenever you want to display some information in the browser, it is better to spend some time to increase the look and feel of your content, With HTML, the browser understands the markup and will display it without the use of any styling mechanism. Style sheets are therefore a welcome addition to HTML for giving more flexibility to document designers. Style sheets are generally used to apply styles, or formatting information, consistently throughout a document. The most commonly used form of style sheet on the Web is based on the Cascading Style Sheets (CSS) specification. CSS allows authors to define classes of styles that can be applied throughout an HTML or XML document.

The simplicity of document creation was a key element in the astonishingly rapid development of the Web. In this site, we outline the steps for using a CSS style sheet in an XML document. HTML provides limited possibilities for the explicit formatting and positioning of the text. The mechanisms that are provided in such as the FONT element or the ALIGN attribute force the page designer to embed presentation specific information within the document; a fact that makes it difficult to prepare documents for a variety of screen sizes, presentation modalities, and types of audiences. Since these limited features are not sufficient to achieve the formatting results desired by many Web designers, they commonly resort to the use of using tables and various HTML coding "tricks. "

XML however is different. The markup is not standardised and the browser does not know how to render it. This is because, with XML, authors can create their own tag set, giving the browser little chance of knowing how to display the resulting document. Style sheets and other display mechanisms are therefore an essential part of rendering XML. Currently, there are two types of style sheets available for displaying XML: Cascading Style Sheets (CSS) and the extensible Style Language (XSL).

CSS displays an entire XML document by traversing the XML document tree from the root element to the last element of the tree. It follows the tree in the order of the element's appearance in the tree. Basically, it provides a means to add a style to each element as it appears within the structure of the document. Cascading Style Sheets exist in two forms CSS1 and CSS2. CSS2 adds more functionality and was accepted in May 1998. CSS1 covers all the basic facilities you might want in a style sheet, while CSS2 adds some very useful additional facilities, such as the ability to specify tables.



Domain Name Search

www.


Copyright (C) 2007. Web Domain design hosting. All rights reserved.