HTML: insert spaces - how it works
Even if you insert several spaces in a row in HTML code, they are only displayed as one space on your website. This corresponds to the standard specifications for web browsers for handling HTML code. Here we show how you can use spaces in HTML to structure your text and make it easy to read.
Insert spaces using HTML
- You can use the character string to enter any extra spaces anywhere in your HTML code. So you can easily remember the string: stands for non-breaking space, commands for special characters in HTML always begin with a '&' and end with a ';'.
- is also the right command if you want to insert a non-breaking space in your text. This always makes sense if two pieces of information should never be separated by a line break, for example title and name.
- If you want to insert an empty line, you should work with a paragraph format. Contribute the section you want to separate in the HTML code
in the beginning and
in the end. - With the command
lines are broken via HTML. Enter several times in a row
you can insert any spacing between individual lines or text sections.