Html 什么是 特点?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5541222/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the 
 character?
提问by Revious
What's the meaning of this char?
这个字符是什么意思?
回答by Justin Niessner
That would be an HTML Encoded Line Feed character (using the hexadecimal value).
那将是一个 HTML 编码的换行符(使用十六进制值)。
The decimal value would be
十进制值将是
回答by Maxim Daigle
It is the equivalent to \n -> LF (Line Feed).
它相当于 \n -> LF(换行)。
Sometimes it is used in HTML and JavaScript. Otherwise in .NET environments, use Environment.NewLine
.
有时它用于 HTML 和 JavaScript。否则在 .NET 环境中,请使用Environment.NewLine
.
回答by Tomasz Nurkiewicz
It's the ASCII/UTF code for LF
(0A
) - Unix-based systems are using it as the newline character, while Windows uses the CR-LF PAIR (OD0A
).
它是LF
( 0A
)的 ASCII/UTF 代码- 基于 Unix 的系统将其用作换行符,而 Windows 使用 CR-LF PAIR ( OD0A
)。
回答by korona
It's a linefeed character. How you use it would be up to you.
这是一个换行符。你如何使用它取决于你。
回答by eugenevd


is the HTML representation in hex of a line feed
character. It represents a new line on Unix and Unix-like (for example) operating systems.


是十六进制line feed
字符的 HTML 表示。它代表了 Unix 和类 Unix(例如)操作系统上的新行。
You can find a list of such characters at (for example) http://la.remifa.so/unicode/latin1.html
您可以在(例如)http://la.remifa.so/unicode/latin1.html找到此类字符的列表
回答by Alireza Fattahi
This is the ASCII format.
这是 ASCII 格式。
Please consider that:
请考虑:
Some data (like URLs) can be sent over the Internet using the ASCII character-set. Since data often contain characters outside the ASCII set, so it has to be converted into a valid ASCII format.
某些数据(如 URL)可以使用 ASCII 字符集通过 Internet 发送。由于数据通常包含 ASCII 集之外的字符,因此必须将其转换为有效的 ASCII 格式。
To find it yourself, you can visit https://en.wikipedia.org/wiki/ASCII, there you can find big tables of characters. The one you are looking is in Control Characters
table.
要自己找到它,您可以访问https://en.wikipedia.org/wiki/ASCII,在那里您可以找到大的字符表。您正在查找的那个在Control Characters
表中。
Digging to table you can find
挖掘到表你可以找到
Oct Dec Hex Name
012 10 0A Line Feed
Oct Dec Hex Name
012 10 0A Line Feed
In the html file you can use Dec and Hex representation of charters
在 html 文件中,您可以使用 Dec 和 Hex 表示章程
The Dec
is represented with
在Dec
表示与
The Hex
is represented with 

(or you can omit the leading zero 

)
在Hex
与代表

(或者你可以省略前导零

)
There is a good converter at https://r12a.github.io/apps/conversion/.