01/29/2024

Getting Started

A simple and more natural solution that doesn't involve CSS styles or numeric character references like would be to use the character entity reference: The primary colors are: - Red - Green - Blue Note: Since this is defined simply as the LF (line feed, or the U+000A Unicode code point) character, it can be debatable whether it suits scenarios where the entire CR + LF (carriage return + line feed) sequence is required. But then, it worked in my Chrome, Edge and WebView2 tests done in Windows 10, so it should be safe to use. Share Follow edited Feb 14, 2023 at 1:45 Peter Mortensen's user avatar Peter Mortensen 30.8k2222 gold badges106106 silver badges131131 bronze badges answered May 14, 2022 at 15:59 Yin Cognyto's user avatar Yin Cognyto 1,05611 gold badge1212 silver badges2424 bronze badges This worked but required CSS white-space: pre-line;. Both work well together since some code formatters remove white space. – HelloWorldPeace Oct 11, 2022 at 14:59 What is the intent of ? Literal? Rendered somehow? Some kind of encoding of non-printable ASCII character? Can you elaborate? – Peter Mortensen Feb 14, 2023 at 1:46 1 @PeterMortensen It's just the character entity reference of a line feed, similar to how from the accepted answer is its numerical (decimal) entity reference in XML / HTML. They are standard textual or numerical representations of a character defined in the HTML specifications and can be used for almost all Unicode characters, irrespective if they are printable or not. It's not specially rendered, it's just one of the three ways (literal, numerical, textual) to represent such an "entity" in HTML.