White spaces are a sequence of blank space characters, treated as a single space character in an HTML document.
- The advantages of collapsing white space are
- Helps the content of the code to be more understandable and readable to the users.
- Decreases the transmission time between the server and the client and removes unnecessary bytes that are occupied by the white spaces.
- If you leave extra white space by mistake, the browser will ignore it and display the content properly.