bad form @ form, function & class 2016

85
BAD FORM @cliener

Upload: cliener

Post on 09-Jan-2017

245 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Bad Form @ Form, Function & Class 2016

BAD FORM@cliener

Page 2: Bad Form @ Form, Function & Class 2016
Page 3: Bad Form @ Form, Function & Class 2016
Page 4: Bad Form @ Form, Function & Class 2016
Page 5: Bad Form @ Form, Function & Class 2016
Page 6: Bad Form @ Form, Function & Class 2016
Page 7: Bad Form @ Form, Function & Class 2016
Page 8: Bad Form @ Form, Function & Class 2016
Page 9: Bad Form @ Form, Function & Class 2016

wufoo.com/html5/

Page 10: Bad Form @ Form, Function & Class 2016

<input type="email">

Page 11: Bad Form @ Form, Function & Class 2016

<input type="tel">

Page 12: Bad Form @ Form, Function & Class 2016

<input type="url">

Page 13: Bad Form @ Form, Function & Class 2016

<input type="number">

Page 14: Bad Form @ Form, Function & Class 2016

<input type="datetime">

Page 15: Bad Form @ Form, Function & Class 2016
Page 16: Bad Form @ Form, Function & Class 2016

<input type="datetime">

Page 17: Bad Form @ Form, Function & Class 2016

<input required>

Page 18: Bad Form @ Form, Function & Class 2016

<input placeholder= "dd/mm/yyyy">

Page 19: Bad Form @ Form, Function & Class 2016

webaxe.org/floated-labels-still-suck/

Page 20: Bad Form @ Form, Function & Class 2016
Page 21: Bad Form @ Form, Function & Class 2016

<input pattern="/d*">

Page 22: Bad Form @ Form, Function & Class 2016

<input autocorrect="off">

Page 23: Bad Form @ Form, Function & Class 2016

<input autocapitalize="off">

Page 24: Bad Form @ Form, Function & Class 2016

<input autofocus>

Page 25: Bad Form @ Form, Function & Class 2016
Page 26: Bad Form @ Form, Function & Class 2016
Page 27: Bad Form @ Form, Function & Class 2016
Page 28: Bad Form @ Form, Function & Class 2016

FIXED!

Page 29: Bad Form @ Form, Function & Class 2016

<input autocomplete="off">

Page 30: Bad Form @ Form, Function & Class 2016

<input type="password" autocomplete="off">

Page 31: Bad Form @ Form, Function & Class 2016
Page 32: Bad Form @ Form, Function & Class 2016
Page 33: Bad Form @ Form, Function & Class 2016
Page 34: Bad Form @ Form, Function & Class 2016
Page 35: Bad Form @ Form, Function & Class 2016
Page 36: Bad Form @ Form, Function & Class 2016

Form

Page 37: Bad Form @ Form, Function & Class 2016

FormFieldset

Page 38: Bad Form @ Form, Function & Class 2016

FormFieldsetLegend or Header

Page 39: Bad Form @ Form, Function & Class 2016

FormFieldsetLegend or HeaderBlock element (p, li, th, td)

Page 40: Bad Form @ Form, Function & Class 2016

FormFieldsetLegend or HeaderBlock element (p, li, th, td)Label (id)

Page 41: Bad Form @ Form, Function & Class 2016

FormFieldsetLegend or Header Block element (p, li, th, td)Label (id)Field

Page 42: Bad Form @ Form, Function & Class 2016

<form method="post" action="ffcph.php"><fieldset><legend>FFPH FTW</legend><p><label for="name">Name</label> <input type="text" name="name" id="name"></p></fieldset></form>

Page 43: Bad Form @ Form, Function & Class 2016

Vertical label/field

Page 44: Bad Form @ Form, Function & Class 2016
Page 45: Bad Form @ Form, Function & Class 2016
Page 46: Bad Form @ Form, Function & Class 2016

Vertical label/fieldHorizontal (search)

Page 47: Bad Form @ Form, Function & Class 2016
Page 48: Bad Form @ Form, Function & Class 2016

Vertical label/fieldHorizontal (search)Clear path to completion

Page 49: Bad Form @ Form, Function & Class 2016
Page 50: Bad Form @ Form, Function & Class 2016

Vertical label/fieldHorizontal (search)Clear path to completionMark optional fields

Page 51: Bad Form @ Form, Function & Class 2016
Page 52: Bad Form @ Form, Function & Class 2016
Page 53: Bad Form @ Form, Function & Class 2016
Page 54: Bad Form @ Form, Function & Class 2016
Page 55: Bad Form @ Form, Function & Class 2016

Allow people to make mistakes

Page 56: Bad Form @ Form, Function & Class 2016
Page 57: Bad Form @ Form, Function & Class 2016
Page 58: Bad Form @ Form, Function & Class 2016

“The real danger is not that computers will begin to think like men, but that men will

begin to think like computers.”

Sydney J Harris

Page 59: Bad Form @ Form, Function & Class 2016
Page 60: Bad Form @ Form, Function & Class 2016

Allow people to make mistakesClearly mark invalid fields

Page 61: Bad Form @ Form, Function & Class 2016
Page 62: Bad Form @ Form, Function & Class 2016

<p><label for="input-text">Text Input</label> <input type="text" name="input-text" id="input-text" required></p>

Page 63: Bad Form @ Form, Function & Class 2016

<p class="c-form__field-box--error"><label for="input-text">Text Input</label><label class="c-form__label--error" for="input-text-error" aria-live="assertive">Error message</label> <input type="text" name="input-text" id="input-text" required></p>

Page 64: Bad Form @ Form, Function & Class 2016
Page 65: Bad Form @ Form, Function & Class 2016

Allow people to make mistakesClearly mark invalid fieldsEnforce minimum not maximum

Page 66: Bad Form @ Form, Function & Class 2016
Page 67: Bad Form @ Form, Function & Class 2016
Page 68: Bad Form @ Form, Function & Class 2016
Page 69: Bad Form @ Form, Function & Class 2016
Page 70: Bad Form @ Form, Function & Class 2016

"4123 5678 9012 3456".replace(/(\s)/g, "");>>> "4123567890123456"

Page 71: Bad Form @ Form, Function & Class 2016
Page 72: Bad Form @ Form, Function & Class 2016
Page 73: Bad Form @ Form, Function & Class 2016
Page 74: Bad Form @ Form, Function & Class 2016
Page 75: Bad Form @ Form, Function & Class 2016
Page 76: Bad Form @ Form, Function & Class 2016
Page 77: Bad Form @ Form, Function & Class 2016
Page 78: Bad Form @ Form, Function & Class 2016

QUAID JSgithub.com/cliener/Quaid-JS

Page 81: Bad Form @ Form, Function & Class 2016
Page 82: Bad Form @ Form, Function & Class 2016
Page 84: Bad Form @ Form, Function & Class 2016

“Unless someone like you cares a whole awful lot nothing is going to get

better. It’s not.”Dr Seuss

Page 85: Bad Form @ Form, Function & Class 2016

@cliener

slideshare.net/cliener