Use CSS to add a bullet point to any element - HTML CSS CSS Property

HTML CSS examples for CSS Property:content

Description

Use CSS to add a bullet point to any element

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
h1:before {<!--from  w ww .  jav  a 2s .co m-->
   content:"? ";
}
</style> 
 </head> 
 <body> 
  <h1>My H1 text here</h1>  
 </body>
</html>

Related Tutorials