Use wile card to set font family : wild card « Style Basics « HTML / CSS






Use wile card to set font family

 

<html>
<head>
<title>Use wile card to set font family</title>
<style type="text/css">
  * {
   font-family: verdana, arial, sans-serif;
  }
</style>
</head>
<body>
  <h1>Title of Page</h1>
  <p>This is a sample paragraph with a <a href="http://www.java2s.com" class="warning">link</a>. After link. <em class="warning"> in em warning</em>. After em.</p>

  <ul id="navigation">
    <li class="warning"><a href="http://www.java2s.com">Apples</a></li>

    <li><a href="http://www.java2s.com">Bananas</a></li>

    <li><a href="http://www.java2s.com">Cherries</a></li>
  </ul>
</body>
</html>

 








Related examples in the same category