Use sub fonts - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Font

Description

Use sub fonts

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,800italic,800,700italic,700,600italic,600,400italic,300italic,300" rel="stylesheet" type="text/css"> 
  <style>
.dateOfPost {<!--   w  w w .j av a2 s  . c o  m-->
   font-weight:bold;
   font-family:'Open Sans', sans-serif;
}
</style> 
 </head> 
 <body> 
  <div class="dateOfPost">
    Lorem ipsum dolor 
  </div>  
 </body>
</html>

Related Tutorials