Add style to tag : tag style « XML « HTML / CSS






Add style to tag

 
 
 
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<?xml-stylesheet type="text/css" href="xml-block.css"?>

<MyRoot>
    T<MyElement>d</MyElement> a.
</MyRoot>

MyRoot {
    display: block;
    background: lightgrey;
}
MyElement {
    display: inline;
    font-weight: bold;
    font-style: italic;
    color: red;
}

 








Related examples in the same category