Using CSS with HTML : html « Tags « HTML / CSS






Using CSS with HTML

    
<html>
 <head>
  <title></title>
  <style type="text/css">
  <!--
  body {
   font-family: verdana, arial, sans-serif;
  }
  h1 {
   font-size: 120%;
  }
  a {
   text-decoration: none;
  }
  p {
   font-size: 90%;
  }
  -->
  </style>  
 </head>
 <body>
  <h1>Title of Page</h1>
  <p>This is a sample paragraph with a 
<a href="http://asdf.com">link</a>.</p>
 </body>
</html>

   
    
    
    
  








Related examples in the same category

1.'html' identifies an HTML document
2.XHTML headers
3.Body tag
4.HTML document structure
5.Working with Structure
6.Structured XHTML 1.1 Document
7.Set margin and padding for both and body
8.Style for HTML
9.An HTML page with CSS rules and HTML attributes
10.Template to illustrate all
11.'xmlns' declares a namespace for creating unique custom tags in the HTML document
12.'version' indicates the version of HTML