How can I newline in HTML Button?

Ask a question+

Hi, I need to know how I can newline in HTML Button. Here is my code:

<input type="button" value="Send message" style="width:150px; height: 40px;"/>
Jane Cox 100
add comment

1 Answer


You may used the<button>attribute as<input>doesn’t support the newline tags. So you could do this for example:

<button> Send<br />message </button>

You can find more details here:

Arthur Martin 180

I agree with Arthur to use the new line you should use a button tag instead of input tag.

Deepak Mathur
add comment

Your Answer