O'Reilly logo

XML and Java™ from scratch by Nicholas Chase

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Converting Our Content to XML

The nice thing about all this is that by using CSS2 properties for our elements, we can completely control how they're displayed—to the extent that it's supported by the browser, of course.

But in all of this talk about presentation, the structure of the content is getting lost. Sure, a human can look at the page and pick out the meaning of each item, but to a computer, the vendor name is no different from the body of the advertisement; they're both just text to be displayed.

One <p> is just like the others, and the fact that text is enclosed in <b></b> tags means nothing, structurally.

Fortunately, all this control has given us an advantage: Because we're determining the presentation using properties anyway, there's ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required