What HTML element and attribute can be used to preserve line breaks in a form input?
To preserve line breaks in a form input, you can use the `<textarea>` element in HTML along with the `wrap="soft"` attribute. This attribute allows the text in the textarea to wrap at the specified width, preserving line breaks entered by the user. ```html <textarea name="message" wrap="soft"></textarea> ```
Keywords
Related Questions
- What are the potential benefits of using JavaScript for auto-suggest functionality in PHP applications?
- What are some potential pitfalls when using PHP to change database entries based on user actions?
- Is it possible to assign unique classes or IDs to individual forums in phpbb3 for styling purposes?