CSS:- Font size and italic

<!DOCTYPE html> 

<html> 

 

<head> 

 <meta name="viewport" content="width=device-width, initial-scale=1"> 

 

 <style> 

  .fnt_cls { 

   font-style: italic; 

   font-size: 30px; 

  } 

 </style> 

 

</head> 

 

<body> 

 <div class="fnt_cls"> 

  Font property in css 

 </div> 

 

</body> 

 

</html>




Used of :- 

  • In this program fnt_cls class contains font-style & font-size css properties.
  • Inside the <style> element a dot(.) symbol indicates(.fnt_cls) the classname and # indicates the id value.
  • Whatever written inside the div that text should be in italic, and 30px text size.
  • Output:-  Font property in css

CSS:- Font size and italic CSS:- Font size and italic Reviewed by Network security on May 05, 2019 Rating: 5

No comments:

Useful Information

Powered by Blogger.