font style: italic and bold : font « CSS Style « XML






font style: italic and bold


File: Style.css

BOOK {
   display:block;
   margin-top:12pt;
   font-size:10pt
}

TITLE {
   font-style:italic
}

AUTHOR {
   font-weight:bold
}
File: Data.xml


<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="Style.css"?>
<INVENTORY>
   <BOOK>
      <TITLE>title 1</TITLE>
      <AUTHOR>author 1</AUTHOR>
      <BINDING>paperback</BINDING>
      <PAGES>1</PAGES>
      <PRICE>$1.1</PRICE>
   </BOOK>
</INVENTORY>

 








Related examples in the same category

1.Font size and weight
2.footnote style
3.Page number style
4.bold font
5.smaller font size
6.Choosing a Font Family
7.Setting the Font Size
8.Setting All Font Values at Once