Check out example codes for "html tandc". It will help you in understanding the concepts better.
Code Example 1
<label>
<input
type="checkbox"
name="terms-accepted"
value="tandc"
required> Accept terms
</label>
Learn ReactJs, React Native from akashmittal.com