Whitespace refers to a set of characters that can be used to add horizontal or vertical space between characters. These characters and their usage vary among different languages. In HTML, the following characters are considered whitespace characters:
Character | Unicode/ASCII | Decimal |
---|---|---|
Horizontal Tab | U+0009 |
9 |
New Line, Line Feed or End-of-Line | U+000A |
10 |
Form Feed | U+000C |
12 |
Carriage Return | U+000D |
13 |
Space | U+0020 |
32 |
Please note that you can easily create an HTML entity from the Unicode hexadecimal or decimal character references.
This post was published by Daniyal Hamid. Daniyal currently works as the Head of Engineering in Germany and has 20+ years of experience in software engineering, design and marketing. Please show your love and support by sharing this post.