HTML CSS examples for CSS Form:input
CSS3 :after pseudo element with input
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> input,<!-- www . j a v a 2s.c o m--> textarea { } .req { display:block; } .req:after { content:"*"; margin:0 0 0 0.2em; color:Chartreuse; } </style> </head> <body> <span class="req"> <button>Lorem </button> </span> <span class="req"> <input type="text"> </span> <span class="req"> <input type="radio"> </span> <span class="req"> <input type="checkbox"> </span> <span class="req"> <textarea></textarea> </span> </body> </html>