HTML's URL validation expects http://
or https://
by default. I tried adding a pattern attribute with custom regular expression along with type="url"
, but failed to do so successfully.
Is there any option that we can override the regular expression to make http://
or https://
optional?