HTML CSS Reference/HTML Attributes Reference/wrap

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

"wrap" Example

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



wrap is applied to

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



wrap Possible Values

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.



"wrap" Syntax and Note

Note:
    
This attribute determines how to wrap text.
    
Syntax:
    
<element wrap="value"> . . . </element>