Can I use tabs for my indentation rather than two spaces?


#1

Question

Can I use tabs for my indentation rather than two spaces?

Answer

There is no official standard on how many spaces or tabs to indent by within our HTML documents. So long as you are consistent, you may use tabs rather than spaces if you prefer. That having been said, 2 space indentation is very common and adheres to Google’s HTML style guide.


FAQ: Learn HTML Elements - Common HTML Elements - Indentation
FAQ: Learn HTML Elements - Common HTML Elements - Linking to Same Page