HTML and CSS Reference
In-Depth Information
If you load the form in Safari and try to submit with invalid fields, you'll get an error mes-
sage like the one shown in figure2.13 , and the invalid fields will highlight in red. This isn't
the prettiest way to inform your users of errors—in practice you'd probably try to mimic
the behavior of one of the other browsers by showing an error bubble next to the first error
that's encountered.
Figure 2.13. Safari now validates the form, displaying a generic alert dialog box with a list of errors that the user
needs to correct. You'll notice that for each invalid field, the field's label has been picked up along with the relevant
error message that's to be displayed to the user.
Search WWH ::

Custom Search