Skip to content

Instantly share code, notes, and snippets.

View aaggour's full-sized avatar

Ahmad Aggour aaggour

View GitHub Profile
@aaggour
aaggour / size attribute
Created July 30, 2019 17:58
size attribute
<input type="text" size=100>
<input type="text">
<input type="text" size=5>
@aaggour
aaggour / disabled attribute
Created July 30, 2019 17:55
disabled attribute
<input type="text" value="can't touch this" disabled>
<textarea disabled>You can't focus on this.... or can you?</textarea>
@aaggour
aaggour / readonly attribute
Created July 30, 2019 17:49
readonly attribute
<input type="text" value="can't touch this" readonly>
<textarea readonly>You can't change this… or can you?</textarea>
@aaggour
aaggour / formenctype attribute
Created July 30, 2019 17:37
formenctype attribute
<form enctype="multipart/form-data">
<input type=submit value=Submit ↵
formenctype="application/x-www-form-urlencoded">
</form>
@aaggour
aaggour / formtarget attribute
Created July 30, 2019 16:56
formtarget attribute
<form target="_self">
<input type="submit" formtarget="_blank">
</form>
@aaggour
aaggour / formmethod attribute
Created July 30, 2019 16:51
formmethod attribute
<form method=post>
<input name=hidden-value value=5 type=hidden>
<input type=submit value=Submit formmethod=get>
</form>
@aaggour
aaggour / formaction attribute
Created July 30, 2019 16:47
formaction attribute
<form action="http://example.com">
<input type=submit value=Submit ↵
formaction="http://www.wufoo.com">
</form>
@aaggour
aaggour / formnovalidate attribute
Created July 30, 2019 16:43
formnovalidate attribute
<form>
<input type=number name=num min=1 max=10>
<input type=submit formnovalidate value=Save>
<input type=submit value=Submit>
</form>
@aaggour
aaggour / novalidate attribute
Created July 30, 2019 16:39
novalidate attribute
<form novalidate>
<input type=number name=num step=5>
</form>
@aaggour
aaggour / spellcheck attribute
Last active July 30, 2019 16:36
spellcheck attribute
<input type=text spellcheck="true">
<input type=text spellcheck="false">