All elements allow non-breaking space. If you use a single space code twice, it will be displayed as a double space. If you write content without using any tags, your space will be changed into " " automatically in the backend.
Code:
<h1> Hello Everyone </h1> <h1> Hello Everyone </h1> <h1> Hello Everyone </h1>
Result
You can easily add multiple spaces in HTML using pre-tag. The pre element represents a block of preformatted text, in which structure is represented by typographic conventions rather than by elements. This tag is the only one that allows multiple spaces, even if you add multiple whitespaces between words, it will display correctly. So you don't need to add any code like the first method. To add multiple spaces in the heading you need to add <h1> tag inside <pre> tag and give your content inside it as shown in the below code:
<pre><h1>Hello Everyone</h1></pre>
Result: