Skip to content

Instantly share code, notes, and snippets.

View LarrySul's full-sized avatar
🎯
Focusing

Sule-Balogun Olanrewaju LarrySul

🎯
Focusing
View GitHub Profile
<input
type="text"
list="direction-data"
placeholder="directional preference"
required
/>
<datalist id="direction-data">
<option value="North"></option>
<option value="South"></option>
<input
type="range"
min="0"
max="100"
step="10"
value="30"
/>
<input
type="url"
placeholder="web address"
/>
<input
type="tel"
placeholder="phone number"
required
/>
<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 -->
@LarrySul
LarrySul / intro to html input elements by devLarry
Last active July 21, 2019 18:11
intro to html input elements by devLarry
<input
type="text"
placeholder="first and last name"
required
pattern="(.*)\s(.*)"
/>
<input
type="text"
placeholder="username"
@LarrySul
LarrySul / Intro to html input elements by devLarry
Last active July 21, 2019 18:15
Intro to html input elements by devLarry
<form>
<input type="search"
placeholder="search"
autofocus
/>
</form>
<form>
.
form elements
.
</form>
@LarrySul
LarrySul / javascript object the easy way @devlarry
Last active May 10, 2019 19:54
javascript object methods
var person = {
firstName: "John",
lastName : "Doe",
id : 5566,
fullName : function() {
return this.firstName + " " + this.lastName;
},
exam : function () {
return 'I have exam on Monday';
@LarrySul
LarrySul / javascript object the easy way @devlarry
Last active May 10, 2019 19:39
creating objects with the new keyword
var person = new Object();
person.firstName = "Amatare";
person.lastName = "Kripsy";
person.age = 25;
person.maritalStatus = "Dating";