Thursday 29 December 2011

HTML5 Input Type - url

The URL should contain a URL address for input fields .
When the form is submitted, the value of the url field is automatically validated .

Syntax:
 
URL_Homepage: <input type="url" name="user_url" />
 
Example:
 <!DOCTYPE html>
<html>
<body>

<form action="demo_form.asp" method="get">
Homepage: <input type="url" name="user_url" /><br />
<input type="submit" />
</form>

</body>
</html>

 

1 comment:

  1. Useful informations. Thanks for Posting.
    http://www.cavinitsolutions.com/

    ReplyDelete