wrap
Description
The wrap attribute for HTML specifies the wrap state of the text when it is submitted.
The hard state indicates the text is to have newlines added by the user agent so the text is wrapped when it is submitted. The soft state indicates the text is not to be wrapped when it is submitted (though it can still be wrapped in the rendering).
Syntax
wrap="value"
Examples
1 · HTML · hard
2 · HTML · soft
3 · JS · hard
4 · JS · soft
Links
Related
Attributes
- abbr
- accept
- accept-charset
- accesskey
- action
- alt
- as
- async
- autocapitalize
- autocomplete
- autofocus
- autoplay
- blocking
- charset
- checked
- cite
- class
- color
- cols
- colspan
- contenteditable
- controls
- coords
- crossorigin
- data
- datetime
- decoding
- default
- defer
- dir
- dirname
- disabled
- download
- draggable
- enctype
- enterkeyhint
- exportparts
- fetchpriority
- for
- form
- formaction
- formenctype
- formmethod
- formnovalidate
- formtarget
- headers
- height
- hidden
- high
- href
- hreflang
- http-equiv
- id
- imagesizes
- imagesrcset
- inert
- inputmode
- integrity
- is
- ismap
- itemid
- itemprop
- itemref
- itemscope
- itemtype
- kind
- label
- lang
- list
- loading
- loop
- low
- max
- maxlength
- media
- method
- min
- minlength
- multiple
- muted
- name
- nomodule
- nonce
- novalidate
- onabort
- onafterprint
- onauxclick
- onbeforeinput
- onbeforeprint
- onbeforetoggle
- onbeforeunload
- onblur
- oncancel
- oncanplay
- oncanplaythrough
- onchange
- onclick
- oncontextlost
- oncontextmenu
- oncontextrestored
- oncopy
- oncut
- ondblclick
- ondrag
- ondragend
- ondragenter
- ondragleave
- ondragover
- ondragstart
- ondrop
- ondurationchange
- onended
- onfocus
- onformdata
- onhashchange
- oninput
- oninvalid
- onkeydown
- onkeypress
- onkeyup
- onlanguagechange
- onload
- onloadeddata
- onloadedmetadata
- onloadstart
- onmousedown
- onmouseenter
- onmouseleave
- onmousemove
- onmouseout
- onmouseover
- onmouseup
- onmousewheel
- onoffline
- ononline
- onpagehide
- onpageshow
- onpaste
- onpause
- onplay
- onplaying
- onprogress
- onratechange
- onreset
- onresize
- onscroll
- onscrollend
- onsearch
- onseeked
- onseeking
- onselect
- onstorage
- onsubmit
- onsuspend
- ontimeupdate
- ontoggle
- onunload
- onvolumechange
- onwaiting
- onwheel
- open
- optimum
- part
- pattern
- ping
- placeholder
- playsinline
- popover
- popovertarget
- popovertargetaction
- poster
- preload
- readonly
- referrerpolicy
- rel
- required
- reversed
- rows
- rowspan
- sandbox
- scope
- selected
- shape
- size
- sizes
- slot
- span
- spellcheck
- src
- srcdoc
- srclang
- srcset
- start
- step
- style
- tabindex
- target
- title
- translate
- type
- usemap
- value
- width