You can use the input element’s ‘email’ type to create an email address text box or the ‘URL’ type to create a URL text box. The email or url input elements will display a message if the value is not valid.
email
url
email
<input name="myEmail" type="email">
url
<input name="myURL" type="url">
url