Book details XML using externsl CSS...

XML Code:

15)


book.xml

<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="books.css"?>
<books><center>
    <heading>Welcome To My Book Shop </heading><br>
    <book>
        <title>Title : Web Programming</title><br>
        <author>Author : Chrisbates</author><br>
        <publisher>Publisher : Wiley</publisher><br>
        <edition>Edition : 3</edition><br>
        <price> Price : 300</price><br>
    </book>
    <book>
        <title>Title : Internet world-wide-web</title><br>
        <author>Author : Ditel</author><br>
        <publisher>Publisher : Pearson</publisher><br>
        <edition>Edition : 3</edition><br>
        <price>Price : 400</price><br>
    </book>
    <book>
        <title>Title : Computer Networks</title><br>
        <author>Author : Foruouzan</author><br>
        <publisher>Publisher : Mc Graw Hill</publisher><br>
        <edition>Edition : 5</edition><br>
        <price>Price : 700</price><br>
    </book>
    <book>
        <title>Title : DBMS Concepts</title><br>
        <author>Author : Navath</author><br>
        <publisher>Publisher : Oxford</publisher><br>
        <edition>Edition : 5</edition><br>
        <price>Price : 600</price><br>
    </book>
    <book>
        <title>Title : Linux Programming</title><br>
        <author>Author : Subhitab Das</author><br>
        <publisher>Publisher : Oxford</publisher><br>
        <edition>Edition : 8</edition><br>
        <price>Price : 300</price><br>
    </book>
</books> </center>

books.css

books {
     color: orangered;
     background-color : pink;
     width: 100%;
}
 heading {
     color: green;
     font-size : 40px;
     background-color : powderblue;
}
 heading, title, author, publisher, edition, price {
     display : block;
}
 title {
     font-size : 25px;
     font-weight : bold;
}

OUTPUT:






Comments

POPULAR POSTS

POPULAR POSTS