Connection of a CSS style sheet with HTML can be done three ways. One of the ways is using and external style sheet to make the connection. Similarly an internal style sheet can be used as define the relation between a CSS style sheet and a HTML element. Finally the last but not the least is using the HTML style attribute to obtain the same objective. These are not possible with XML with the current browsers. Connection can only be done using <?xml-stylesheet?> processing instruction. There is no alternative method of achieving this
Cascading Style Sheets are an exceptional tool, which gives more control over the design of your site. With CSS, you can precisely specify the location and the appearance of the elements of the web-page, and also create special effects. CSS have multiple advantages in contrast to classic HTML 3, for example you can define different style sheets for different browsers and even use a single style sheet across multiple pages.
A CSS rule is formed of two parts: a selector and one or more declarations, separated by a colon. Also, the
Cascading Style Sheets (i.e. CSS) is apparently a collection of pre-structured definitions that state or modify the entire look and feel of the webpage layout. CSS can be used to change the images, texts, tables, headings and other elements of a webpage. While using CSS you can easily modify or pre-assign the different features of a webpage such as employing a style that switches the text color to red and left aligned properties.
Utilizing CSS definitely means saving time on you efforts on webpage creation. Just changing a CSS style amidst creating
"There are three ways to connect a CSS style sheet with HTML: You can use an internal style sheet, you can use an external style sheet, or you can use the HTML STYLE attribute to associate a CSS style with a particular HTML element. You don't have the luxury of these options in XML, at least not with the current crop of browsers. At this point, there's really only one way of connecting a style sheet to an XML document: by using the <?xml-stylesheet?> processing instruction.
Actually, <?xml-stylesheet?> isn't built in to the XML