Tag Archives: Whitespace


What is Whitespace in HTML

HTML treats blank or white spaces identically. This means that if there is a white space of a single character in HTML code or there is a large gap between sentences or tags, HTML will take it as a single character blank space. Let say if you put spaces between two tags in a source code of an HTML page and save it, when you load this page in a web browser, it will not show any spaces between your selected tags.
The same thing happens with sentences, paragraphs and other spaces. If you wish to use a white space in HTML then you may choose either the “Preformatted Text” option or other settings depending on your requirements. Here we will show you how a web browser treats this incident and a simple method to remove white spaces in HTML.

read more »