what is the difference between space and tab?
A space is a space. A tab is a single character that will, when it's displayed, get expanded to something between 2 and 8 spaces on the screen. If you use all spaces, your code looks the same to everyone. If you use all tabs, then everyone can adjust what a tab looks like in their editor to suit their preferences.