Summarize the difference between a tab and a space.
A tab and a space are both white space characters that are used in text layout and formatting. The main difference between them is the amount of space they occupy. A tab character typically moves the cursor to the next tab stop, which may be equivalent to several spaces, depending on the default settings of a program or device. On the other hand, a space character occupies only a single space. Tabs are commonly used to align text or indent lines, while spaces are used to separate words or add small gaps.
Complete the following task based on the instruction and optional input provided.### Instruction:
Summarize the difference between a tab and a space.

### Output:
A tab and a space are both white space characters that are used in text layout and formatting. The main difference between them is the amount of space they occupy. A tab character typically moves the cursor to the next tab stop, which may be equivalent to several spaces, depending on the default settings of a program or device. On the other hand, a space character occupies only a single space. Tabs are commonly used to align text or indent lines, while spaces are used to separate words or add small gaps.