$2.25

How can I newline in HTML Button?

Ask a question+
2

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

2

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:
https://www.w3docs.com/snippets/html/button-with-line-breaks.html.

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