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. : font style « CSS « HTML / CSS

HTML / CSS » CSS » font style 
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.
  

<!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" xml:lang="en" lang="en"
<head><title>CSS Syntax</title> 
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> 
<style><!-
body 
   color:black; 
   font-style:italic;


</style>

</head> 

<body
<p>CSS syntax is <span style="font-style:italic;">EASY!</span></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.font style settings
11.system fonts
12.Font style: italic
13.font-style: normal
14.font-style: oblique
15.font: message-box
16.font: menu
17.This is the caption font
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.