如何通过HTML代码编码双引号 [英] How to Code Double Quotes via HTML Codes
问题描述
在HTML中,指定html代码(如)的首选方法是什么,以及主要区别是什么?例如:
$
&#34;<! - <! - 友好代码 - >
&#34;<! - - 数字代码 - >
&#x22;<! - 十六进制代码 - >
我应该使用哪一个,如果其中的一个被弃用,它会成为问题吗?
& quot;
被处理为& ;#34;
,它是& x22;
的十进制等价物,它是ISO 8859-1等价物 。
您可能会反对使用& quot;
的唯一原因是因为错误地从HTML 3.2规范中省略。
否则它是al我归结为个人喜好。
In HTML, What is the preferred way to specify html codes like "
, and what is the major differences? For example:
" <!-- friendly code -->
" <!-- numerical code -->
" <!-- hex code -->
Which one should I use and would it ever be an issue if one of these gets deprecated?
There really aren't any differences.
"
is processed as "
which is the decimal equivalent of &x22;
which is the ISO 8859-1 equivalent of "
.
The only reason you may be against using "
is because it was mistakenly omitted from the HTML 3.2 specification.
Otherwise it all boils down to personal preference.
这篇关于如何通过HTML代码编码双引号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!