Switch to full style
HTML code examples
Post a reply

using double font families with body tag

Fri Dec 16, 2011 12:12 am

Changing the default font family of body tag , a using two different font families at the same time but for different child tags.

Code:
<html>
 <head>
  <title>Set font family for body</title>
  <style type="text/css">
  body {
   font-family: verdana, arial, sans-serif;
   font-size:20px;
  }
  body a{
  font-family: "Times New Roman",Georgia,Serif;
  }
  </style>  
 
</head>
 <body>
  <h1>Changing font family</h1>
  <p>Notice the change of font family in all text inside the body tag even the link</a>
  </p></br>
  <a href="#">Notice the change of font family in all text inside the body tag even the link</a>.
 </body>
</
html>
 




Post a reply
  Related Posts  to : using double font families with body tag
 CSS used font families     -  
 change the font style of the body tag     -  
 CSS body example     -  
 hi every body . . .     -  
 Add background to body     -  
 set margin to body tag     -  
 Change the body tag background in html     -  
 preserve the white space with-in the body tag     -  
 middle sited body page     -  
 How to set double fraction Precision     -  

Topic Tags

HTML Font, HTML Body