Check out example codes for "html5 astrix for absolutely required field inside a td tag". It will help you in understanding the concepts better.

Code Example 1

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

<style>
  .required:after {
    content:" *";
    color: red;
  }
</style>

Learn ReactJs, React Native from akashmittal.com