I can encode a space using
in an HTML document. Is there an equivalent for the tab character?
I'm trying to preload a <textarea>
with text that contains tabs, but my CMS removes any tab characters that exist in the HTML code.
It is equivalent to the tab character as such. Thus, from the HTML viewpoint, there is no need to “escape” it using the character reference; but you may do so e.g. if your editing program does not let you enter the character conveniently.
The tab character (unicode U+0009) is typically converted to spaces (unicode U+0020) by the white space processing rules and then collapsed so that only one space in a row is displayed in the browser.
(The tab is ASCII character 9, or Unicode U+0009.)
After reviewing your edit, the answer is very simply: 	
:)
 
,  
,  
or  
can be used.
Read More at W3.org for HTML3
Read More at W3.org for HTML4
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With