h1 text-decoration: underline; : Header text « Tags « HTML / CSS






h1 text-decoration: underline;

  
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
  <head>
    <title>Chapter 2</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <style>
body {
  font: 1em Verdana, Geneva, Arial, Helvetica, sans-serif;
}
h1 {
  font: 1.6em Verdana, Geneva, Arial, Helvetica, sans-serif;
  text-decoration: underline;
}
</style>
    
  </head>
  <body>
    <h1>Heading</h1>
    <p>this is a test.</p>
  </body>
</html>

   
    
  








Related examples in the same category

1.h1, h2, h3 text-align: center;
2.h1 text-shadow: 0.2em 0.2em;
3.H1 text-transform: uppercase;
4.h1 text-align: center;
5.h1 text-align: right;
6.H1 text-align: left;
7.h2 text-transform: none;
8.h2 text-transform: uppercase;
9.h1.complex { text-shadow: 3px 3px red, yellow -3px 3px 2px, 3px -3px }
10.Header text along with top links