From the course: XML Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

XML and CSS styles

XML and CSS styles - XML Tutorial

From the course: XML Essential Training

Start my 1-month free trial

XML and CSS styles

- [Instructor] In this example we are going to see how to associate some styling information with XML text. So let's begin by opening the first XML file which is the XML code from the previous video and if you did the previous exercise then this document should already have some content. So let's also open up the first XML file .css file and I'll add some css code to fill out this file. So I'll give a display of block and I'll give it a font family, I'll give that Arial. And let's give it a font size of large. And let's give it a color. The color we will give it will be how about blue. Alright. So Let's save that. So here on line one I have the first tag and that corresponds with the xml tag in our xml document and you see that that's right here. So just like you would normally do in html you can define a css style sheet that applies to an xml tag. So inside the xml tag's style declaration I've got display block because I want the information to display as a block level element and…

Contents