bold font : font « CSS Style « XML






bold font


File: Data.xml


<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="Style.css"?>
<document xmlns:html="http://www.w3.org/TR/REC-html40">
  <page>
    <title>Links</title>
    <paragraph>The 
    <html:a href="http://www.java2s.com" target="_blank">link</html:a>
    will open in a new window.
    </paragraph>
  </page>
</document>

File: Style.css

title{
  display:block;
  color: #000000;
  font-size: 30px;
  font-weight: bold;
}
paragraph {
  display:block;
  padding:10px;
  margin: 10px;
}

 








Related examples in the same category

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