when I started working with CMSMS I really liked the idea of having {formstart} and other form-elements to make form-building much more simple. But then I started digging deeper into webstandards and accessibility and found some other guys who shared their knowledge with me. One example is the use of l elements in association with input-elements. There are various ways of implementing this, for example:
Code: Select all
<label for="newsletter">Newsletter:
<input type="text" id="newsletter" name="newsletter" />
</label>
Code: Select all
<div class="inputText"
<label for="newsletter">Newsletter: </label>
<input type="text" id="newsletter" name="newsletter">
</div>
- first example is XHTML
- second example is HTML
- first example wraps label around input
- second example has label before input, both wrapped in a div
This post was on my mind for quite a long time and I wanted to share it with you to get to know what you are thinking. Maybe someone has made up his mind about this as well and has come up with a better idea or a solution to this.
Regards,
Nils