Download presentation
Presentation is loading. Please wait.
Published byWilfrid Maxwell Modified over 9 years ago
3
Just another way to collect pieces together (like div, section) Anything can be in there Formatting just like all other elements
4
But we’d also like to let users give us information Request input Lots of types Use name to identify the element
5
HTML tag › Defines what its intent is Default formatting creates a button Attribute type › button: general purpose › reset: clear all fields in the form and can use onclick › Note the benefit of ‘ here!
6
button checkbox color date datetime datetime-local email file image month number password radio range reset search submit tel text time url week
7
Nice new option Drop-down list Supports autocomplete Supported on most browsers › NOT Safari
8
Internet Explorer Firefox Chrome Opera Safari
9
Very similar to how you format navigation links Can use hover pseudo-element Can use img for background
11
Label: No formatting, but accessibility gains
12
Label: Sets default value, but can be changed
13
Label: Gives text but never passed as value
14
Label: Reference value through CONTEXT: form-name.field-name.value
16
Note that the first 2 parts of this are just normal selector notation (like you use in css) The.value is to be used exactly and says to use that tag’s value (Note this is only the first and simplest way to access information)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.