HTML5 input type URL validation with protocol and domain extension

We have a cool feature in HTML5 validating website url with declarating input type=”url”. This feature is supported in almost every browser.

Below html5 input tag like below will validate url for both protocols http and https with validating domain extension i-e .com, .co etc.

	placeholder="Website URL: http(s)://"

The following url patterns it will validate:
  1. It should start from http or https.
  2. It should have at-least one period after sub-domain