Hi there. I am new to xml
Why is it that my browser doesn't display the style i mentioned in the css and just displays it as a plain text like this.
Code:
Joe Marini 232322 2321111232 42-232322 abcd@gmail.com
Here are my codes
The document is in the same folder and the files are test.xml and testcss.css
Code:
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" herf="testcss.css"?>
<BusinessCard>
<name>Joe Marini</name>
<phone type="mobile">232322</phone>
<phone type="work">2321111232</phone>
<phone type="fax">42-232322</phone>
<email>abcd@gmail.com</email>
</BusinessCard>
and my css
Code:
BusinessCard {
font-family:Arial, Helvetica, sans-serif;
background-color:#DACFE5;
width: 300px;
display:block;
padding:1px solid #0D3427;
margin:5px;
text-align: left;
}
Name {
color:#0D3427;
font-weight: bold;
font-size:140%;
display:block;
margin-bottom: 3%;
}
phone {
font-size: 90%;
color: #523819;
font-size:90%;
display:block;
}
email {
color: #0D3427;
font-size: 90%;
font-weight: bold;
display:block;
margin-bottom: 3%;
}