# In HTML and CSS what are the standard tab sizes? [closed]

I searched on Google but couldn't find an answer. I'd like to know what are the standard tab sizes for HTML and CSS. Is it 2 or 4?

## closed as primarily opinion-based by gnat, amon, user40980, durron597, user53019 Jul 4 '15 at 12:36

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.

• Unclear what help you need. Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it’s hard to tell what problem you are trying to solve or what aspect of your approach needs to be corrected or explained. See the How to Ask page for help clarifying this question. – gnat Jul 3 '15 at 14:24
• – rink.attendant.6 Jul 3 '15 at 16:53

As I understand you're asking about indentation. There is currently no standard concerning indentation in HTML and CSS files. Nor should there be any. Let your editor software worry about the indentation.

Tabs have no innate size, their interpretation is up to the observer. If you're the observer, you get to decide how you want to view your tabs, or if you're using other kinds of whitespace, however many you want to have.

The syntax in the CSS specification uses [ \t\r\n\f]+ (one or more of the bracketed things) for whitespace, implying that the kind of whitespace is irrelevant.

Similarly, HTML5 defines space characters as:

Any of the following:
U+0020 SPACE
U+0009 CHARACTER TABULATION (tab)
U+000A LINE FEED (LF)
U+000C FORM FEED (FF)
U+000D CARRIAGE RETURN (CR)