Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Tab key
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== HTML === In [[HTML]] the horizontal tab is coded using {{code|	}} or {{code|	}}<ref>See [[Character encodings in HTML#HTML character references]]</ref><ref name="W3CCharacterRef">{{cite web|url=http://dev.w3.org/html5/html-author/charref|title=Character Entity Reference Chart|website=dev.w3.org|access-date=23 March 2018}}</ref> but as with all whitespace characters in HTML, this will be displayed as a single space except inside {{tag|pre|open}}, {{tag|code|open}} tags (or other elements with [[Cascading Style Sheets|CSS]] attribute {{code|white-space}} set to {{code|pre}}). Here is an example: <blockquote> ;HTML: <syntaxhighlight lang="html"> 	This line begins with a single tab. Here	are	some	more	tab	characters	! T.......T.......T.......T.......T.......T.......T.......T </syntaxhighlight> ;Inside {{tag|pre|open}}: <pre> 	This line begins with a single tab. Here	are	some	more	tab	characters	! T.......T.......T.......T.......T.......T.......T.......T </pre> ;Outside {{tag|pre|open}}: <div style="font-family: monospace, monospace;"> 	This line begins with a single tab. Here	are	some	more	tab	characters	! T.......T.......T.......T.......T.......T.......T.......T </div></blockquote> Notice that the tab at the start of a line is removed outside {{tag|pre|open}}, the eight-character spacing, and how a tab stop is skipped if there are more than eight characters since last one. CSS3 defines {{code|tab-size}} property, which adjusts the number of spaces for the tab character from the default of eight.<ref>{{cite web|url=http://dev.w3.org/csswg/css3-text/#tab-size-property|title=CSS 3 tab-size property W3 specification}}</ref> The latest version of [[WebKit]] supports the {{code|tab-size}} property. The [[Opera (web browser)|Opera]] web browser supports the {{code|-o-tab-size}} CSS property, the [[Firefox]] web browser supports the {{code|-moz-tab-size}} CSS property with the same meaning.<ref>{{cite web|url=https://developer.mozilla.org/en-US/docs/CSS/tab-size|title=CSS tab-size property on Mozilla Developer Network|date=21 February 2023 }}</ref> The vertical tab is {{code|}} but is not allowed in [[SGML]]{{Citation needed|date=March 2013}}; this includes [[XML]] 1.0<ref>{{cite web|title=Extensible Markup Language (XML) 1.0|edition=5th|publisher=[[W3C]]|date=26 November 2008|url=https://www.w3.org/TR/xml/#charsets|at=sec. "Charsets"}}</ref> and HTML.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)