Articles → HTML 5 → URL input element in HTML5

URL input element in HTML5






Purpose





Syntax


<input type="url">



Example


<!DOCTYPE html>
<html lang="en"
	xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<form>
			<input type="url">
				<input type="submit" value="Click Me" />
			</form>
		</body>
	</html>



Output


Picture showing the output of URL input element in HTML5

Click to Enlarge


Browser support


Internet ExplorerFirefoxChromeSafariOperaEdge
10.0YesYesYes10.1Yes



Posted By  -  Karan Gupta
 
Posted On  -  Friday, September 15, 2017

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250