CSS Tutorial

CSS Style

CSS Layout Style

CSS Float Style

CSS Reference

CSS content property




CSS content property used to attach content before (pseudo element :before) or after (pseudo element :after) an element.


Property Values


Properties Value Description
Syntax Selector:before { content:value )
value   URL
  String
  att
  inherit
Allow to All Elements
Inherited No

Example-Code:


<style type="text/css">
a:after {content: " (" attr(href) ")";}
</style>
</head>
<p><a href="http://www.way2tutorial.com">Way2Tutorial free tutorials </p>
Online Try This Code Your Self....   »

Example-Result: