font style settings : font style « CSS « HTML / CSS






font style settings

  

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
  <title>CSS Example</title>
<style type='text/css'>
body {
   color:#000000;
   background-color:#ffffff;
   font-family:arial, verdana, sans-serif; 
   font-size:12px;}

td {width:200px;}

p.one {font-style:normal;}
p.two {font-style:italic;}
p.three {font-style:oblique;}
</style>

</head>

<body>
<h1>font-style</h1>

<p class="one">This is a normal font</p>
<p class="two">This is an italic font</p>
<p class="three">This is an oblique font</p>
 
</body>
</html>

   
    
  








Related examples in the same category

1.'font-style' Example
2.Font style: oblique
3.font: status-bar
4.font: small-caption
5.font: icon
6.Font style: normal
7.font-style: italic
8.font-style: italic;
9.font-style: oblique;
10.system fonts
11.Font style: italic
12.font-style:italic; assigns the constant value of italic to font-style. The font-style property also allows two other constant values: normal and oblique.
13.font-style: normal
14.font-style: oblique
15.font: message-box
16.font: menu
17.This is the caption font