What's the difference between <input type="button" /> and <button>?

button, html

Solution

Basically, `<button>` is more flexible as it can contain other tags inside it. Like,

<button type="submit"><strong>Click</strong> me, <em>user!</em></button>

You won't be able to do this with regular `<input>`.

Problem

I didn’t know about the `<button>` tag until today.

Original source

Related problems