This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input | |
type="text" | |
list="direction-data" | |
placeholder="directional preference" | |
required | |
/> | |
<datalist id="direction-data"> | |
<option value="North"></option> | |
<option value="South"></option> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input | |
type="range" | |
min="0" | |
max="100" | |
step="10" | |
value="30" | |
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input | |
type="url" | |
placeholder="web address" | |
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input | |
type="tel" | |
placeholder="phone number" | |
required | |
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input | |
type="email" | |
placeholder="email address" | |
required | |
/> | |
<!-- Pattern attribute can also be adopted here but its believed that the browser will do a better validation of email address --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input | |
type="text" | |
placeholder="first and last name" | |
required | |
pattern="(.*)\s(.*)" | |
/> | |
<input | |
type="text" | |
placeholder="username" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form> | |
<input type="search" | |
placeholder="search" | |
autofocus | |
/> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form> | |
. | |
form elements | |
. | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var person = { | |
firstName: "John", | |
lastName : "Doe", | |
id : 5566, | |
fullName : function() { | |
return this.firstName + " " + this.lastName; | |
}, | |
exam : function () { | |
return 'I have exam on Monday'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var person = new Object(); | |
person.firstName = "Amatare"; | |
person.lastName = "Kripsy"; | |
person.age = 25; | |
person.maritalStatus = "Dating"; |