The button element is a form control that allows users to trigger an action, such as submitting a form or opening a dialog. By default, the text content of the button element is displayed on a single line, regardless of the width or height of the element. However, you can use the white-space CSS property to change how the text is handled. The white-space property can have several values, but the most relevant ones for button elements are normal, pre, and pre-wrap. Normal means that the text is collapsed and wrapped according to the available space. Pre means that the text is preserved as it is, including whitespace and line breaks. Pre-wrap means that the text is preserved but also wrapped according to the available space. For example,
<button style="white-space: pre-wrap;">This is a multiline<br>button element</button>
will create a button element that displays multiline text and line breaks.