Why isn't ` is a container and `` is not. `` – Sparky Jan 11 '16 at 19:06

  • Exactly the same reason as for `script` elements: [Why don't self-closing script tags work?](http://stackoverflow.com/q/69913/1529630) – Oriol Jan 11 '16 at 19:14
  • 1 Answers1

    10

    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>
    Oriol
    • 274,082
    • 63
    • 437
    • 513
    AmJustSam
    • 268
    • 2
    • 9