DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Chara has posted 51 posts at DZone. View Full User Profile

Button With Line Breaks in HTML

01.29.2014
| 1470 views |
  • submit to reddit
<!-- First way -->
<input type="button" value="This is
a Really
Tall
 Button">
<!-- Second way -->
<button>This is<br/>a Really<br/>Tall<br/>Button</button>

To get buttom with line breaks you can use carriage return characters to break the line: &#x00A; or just <br> with a <button> tag: