Computer >> 컴퓨터 >  >> 프로그램 작성 >> HTML

HTML 양식의 텍스트 줄 바꿈 설정


사용 HTML에서 텍스트 줄 바꿈을 설정하는 속성입니다. 다음 코드를 실행하여 wrap을 구현할 수 있습니다. 속성 -

예시

<!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>