Question: why required is not working in html?
Answer: HTML does not recognize “required”. There are JavaScript libraries used for form/field validation that look for “required” and other things like “val_email”, “val_number”, etc. But, HTML doesn't use any of these things on it's own. Search for “JavaScript validation” on Google to see what might fit your needs.