CSS Portal
Run
Search
« Back to
HTML wrap Attribute
<form action="formscript.php" method="get"> <label for="comment">Comment:</label><br> <textarea id="comment" name="comment" rows="4" cols="50" wrap="hard"> This is an example of how text is prefilled in a textarea. Notice how the text wraps according to the cols attribute, and because the wrap attribute is set to "hard", these line breaks will be preserved when the form is submitted. </textarea><br> <input type="submit" value="Submit"> </form>
If this site has been useful, we’d love your support! Running this site takes time and resources, and every small contribution helps us keep creating valuable content. Consider buying us a coffee to keep things going strong!
☕ Buy a Coffee