Salto de línea
Significado del símbolo
The symbol U+000A is known as Line Feed (LF) or New Line (NL) character. It was developed to indicate the end of a text line and the beginning of a new line in text documents, computer terminals, and text processing systems. The line feed moves the printer's drum by one line. On a video terminal, it moves the cursor down and, if necessary, scrolls the image.
As for computer terminals and text editors, Line Feed is used there to move the cursor to the beginning of the next line. It is the standard way of indicating the end of a line in UNIX-like operating systems, including Linux and macOS.
However, Windows operating systems feature a combination of Carriage Return (CR) and Line Feed (LF) (represented as «\r\n») in order to indicate the end of the line.
In the early teleprinters that operated at a few baud rates, the division of control characters into CR and LF was not random. It concealed the fact that the carriage far to the right might not have enough time to reach the next character. What's even worse, the concepts of «driver» and «buffering» did not exist yet.
When it came to Morse code, there was used a separator -•••− , mnemonic BT (Break Text).
Just like other control characters, this character has no visual representation and does not occupy much space on screen or in typed text. There are two separate symbols in Control técnico 2400–243F representing a graphical image of the U+000A character: the Line Feed symbol in the form of an abbreviation LF (Line Feed) — ␊ and the New Line symbol in the form of an abbreviation NL (New Line) —  .
Escape sequence: \n.
It's one of the eight control symbols, the presence of which is required by POSIX:
El símbolo «Salto de línea» está incluido en el subbloque «Controles C0“ del bloque ”Latín básico y fue aprobado como parte de la versión 1.1 de Unicode en 1993.
Sinónimos
avance de línea (lf), fin de línea (eol), LF.
| Nombre en Unicode | New Line |
| Número en Unicode | |
| Plano | 0: Plano básico multilingüe |
| Bloque Unicode | Latín básico |
| Subbloque Unicode | Controles C0 |
| Versión Unicode | 1.1 (1993) |
| Atajo de teclado | ^J |
| Secuencias de escape | \n |
| Tipo de soporte de espejo emparejado (bidi) | None |
| Exclusión de composición | No |
| Cambio de caso | 000A |
| Cambio de caso sencillo | 000A |
| scripts | Common |
| White_Space | + |
| Pattern_White_Space | + |
| Codificación | hex | dec (bytes) | dec | binary |
|---|---|---|---|---|
| UTF-8 | 0A | 10 | 10 | 00001010 |
| UTF-16BE | 00 0A | 0 10 | 10 | 00000000 00001010 |
| UTF-16LE | 0A 00 | 10 0 | 2560 | 00001010 00000000 |
| UTF-32BE | 00 00 00 0A | 0 0 0 10 | 10 | 00000000 00000000 00000000 00001010 |
| UTF-32LE | 0A 00 00 00 | 10 0 0 0 | 167772160 | 00001010 00000000 00000000 00000000 |
Copia y pega estos códigos para usar el personaje Salto de línea en textos de sitios web, redes sociales, mensajeros o publicaciones de blogs.
| HTML | |
| CSS | |
| JavaScript, JSON | |
| Unix, C, PHP, JAVA | |
| Ruby, PHP | |
| Perl | |
| URL-encode |