ใช้แอตทริบิวต์ wrap เพื่อตั้งค่าการขึ้นบรรทัดข้อความใน HTML
ตัวอย่าง
<!DOCTYPE html>
<html>
<body>
<form action="">
<textarea rows="2" cols="12" name="details" wrap="hard">
This is demo text This is demo text This is demo text This is demo text</textarea><br>
<input type="submit">
</form>
</body>
</html>