Answer
In HTML, a sequence of whitespace characters is treated as a single space character.
The browser collapses a sequence of spaces into a single space character, which helps a developer indent the HTML code as needed for better readability and understandability without worrying about the extra spaces within the HTML code.
Example
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1>HTML Collapses Extra Space</h1>
<p>Paragraph content has a sequence of spaces that are collapsed to a single space character by the browser.</p>
</body>
</html>
In the above example, the paragraph content has a sequence of space characters at two places, which will be collapsed to a single space when viewed on a browser.