I just thought i’d be sharing this. I was looking for the most semantic and minimalist way to code a valid xhtml strict login form.
Here is the result i ended up with, feel free to comment/improve. xhtml strict login form .
Of course, there is much more to a form than using valid xhtml: this only ensures portability across various devices.
Such script should, for instance:
- give the focus to the first field on page load
- validate the data and indicate via message and color highlight where the mistake is and how to correct it
Other ideas ?