Answers for "how to add red asterisk in html forms"

1

html5 astrix for absolutely required field inside a td tag

<label class="required">Name:</label>
<input type="text">

<style>
  .required:after {
    content:" *";
    color: red;
  }
</style>
Posted by: Guest on October-24-2020
0

how to make red asterisk in html

.label:before{
     content:"*" ;
     color:red   
     }

.label:after{
     content:"*" ;
     color:red   
     }
Posted by: Guest on October-05-2021

Browse Popular Code Answers by Language