Inline Style

Description

An Inline Style is a style added to an element using the style attribute.

Example


<!DOCTYPE HTML>
<html>
<body>
   <a href="http://java2s.com"  
      style="background-color:grey; color:white"> 
      Visit the   website<!--from   w w  w  . j a  v  a  2  s  . c om-->
   </a>
   <p>This is a test.</p>
   <a href="http://w3c.org">Visit the W3C website</a>
</body>
</html>

Click to view the demo





















Home »
  HTML CSS »
    CSS »




CSS Introduction
CSS Background
CSS Border
CSS Box Layout
CSS Text
CSS Font
CSS Form
CSS List
CSS Selectors
CSS Others
CSS Table