Why isn't <textarea> self closing? [duplicate]

北战南征 提交于 2019-12-01 02:55:53
AmJustSam

Because <input /> can't work like container for text, While <textarea> text goes here</textarea> can work as container for default text!

Here is what explain your curiosity about why they choose to go this way.

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>
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!