HTML CSS Reference/HTML Attributes Reference/wrap

Материал из Web эксперт
Перейти к: навигация, поиск

"wrap" Example

   <source lang="html4strict">
   

<HTML> <head><Title>Example For</Title></head> <BODY> <textarea wrap="soft" rows="4"> Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text </textarea> <textarea wrap="off" rows="4"> Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text </textarea> </BODY> </HTML>


     </source>
   
  


wrap is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+

| Applied_To |
 (IE5.5+ only)             <textarea>                    |
+----------------+--------------------------------------------------------------+
      
      </source>
    
   


wrap Possible Values

   <source lang="html4strict">

Possible Values soft Causes text to word-wrap if it extends the width of its container element;

             default value.
             

hard Causes text to word-wrap, but the wrapping is created with

             carriage-return and line-feed characters.
             

off Turns word wrapping off.


     </source>
   
  


"wrap" Syntax and Note

   <source lang="html4strict">

Note:

This attribute determines how to wrap text.

Syntax:

<element wrap="value"> . . . </element>


</source>