Why does <textarea> not close?

I was wondering why none of the changes to the HTML specification ever made textarea capable of self-closing. Several SO questions answered why this is a separate tag from input , and it makes sense to me that they want to save it as a separate tag for compatibility, but why don't they make <textarea /> as correct as <textarea></textarea> , since it could not break anything as far as I can tell.

+7
html w3c
source share
1 answer

Because <input /> cannot work as a container for text, and <textarea> text goes here</textarea> can work as a container for text by default!

This explains your curiosity about why they decided to go this route.

 textarea { width: 300px; height: 100px; } 
 <!-- Easy way for default input text --> <textarea>Here is why because text can be input into box like paragraph tag</textarea> 
+1
source share

All Articles