Why would <textarea col="5" row="5" /> break my layout in my modern browser but not if I explicitly use a closing tag such as <textarea col="5" row="5" /></textarea>?
This has been bothering me. Is it part of the standard somehow?
Why would <textarea col=5 row=5 /> break my layout in my modern browser but
Share
Yes, it is part of the standard:
http://www.w3.org/TR/html401/interact/forms.html#h-17.7
Why it breaks is another different story altogether, browsers could also implement it such that it just creates an empty
textareaand not break. But since this is required by the standard, you should just follow it.— EDIT —
Also as per @Seth comment (thanks!), it doesn’t have
valueattribute, so initial values go inside the tags.