Use background to highlight title text : Title section : CSS Controls HTML CSS TUTORIALS


HTML CSS TUTORIALS » CSS Controls » Title section »

 

Use background to highlight title text


 


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>Headings</title>
  <style type="text/css" media="screen">
  #divID h1 {
    font-size: 24px;
    color: #fff;
    padding: 4px;
    background: #696;
  }
  </style>
</head>

<body>

<div id="divID">
  <h1>This is the Title of this page.</h1>
</div>

</body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo CSS Controls
» Title section