一、代码
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<title>编程笔记 html5&css&js 实体字符参考</title>
<meta charset="utf-8"/>
<style>
/* 选择你喜欢的颜色吧 */
/* 页面整体样式 */
body {
color: cyan; /* 文字颜色 */
background-color: teal; /* 背景颜色 */
margin: 20px; /* 页面边距 */
}
/* 父容器样式,用于实现居中布局 */
.parent-container {
display: flex; /* 使用Flex布局 */
justify-content: center; /* 水平居中 */
/* 设置元素在交叉轴方向上居中对齐 */
align-items: center;
/* 设置多根轴线在交叉轴方向上居中对齐 */
align-content: center;
}
/* 子元素(待居中div)样式 */
.child {
display: flex;
flex-direction: column; /* 子元素垂直布局 */
width: 70%; /* 宽度设置 */
align-items: center;
align-content: center;
}
/* 表格样式 */
table {
width: 90%; /* 表格宽度 */
border-collapse: collapse; /* 边框合并 */
border: 3px solid black; /* 表格边框 */
align-self: center; /* 自动居中 */
margin: 0 auto;
}
/* 段落样式 */
p {
width: 70%; /* 段落宽度 */
}
/* 标题居中 */
h1, h2 {
text-align: center;
}
/* 分隔线样式 */
hr {
width: 90%; /* 分隔线宽度 */
}
/* 表格头和单元格样式 */
th, td {
border: 1px solid black; /* 边框样式 */
text-align: left; /* 文本对齐方式 */
padding: 15px; /* 内边距 */
}
</style>
</head>
<body>
<div class="parent-container">
<div class="child">
<h1>HTML实体</h1>
<div>
<h2>ISO-8859-1</h2>
<p>ISO-8859-1 是 HTML 4.01 中的默认字符。</p>
<p>
ISO(International Standards
Organization,国际标准组织)为不同的字母/语言定义了标准字符集。
</p>
<p>本页底部列出了 ISO-8859 的不同变体。</p>
</div>
<hr>
<div>
<h2>ISO-8859-1 字符集</h2>
<p>
ISO-8859-1 的第一部分(实体编号为 0-127)是原始 ASCII
字符集。它包含数字、大写和小写英文字母以及一些特殊字符。
</p>
<table class="dataintable">
<tbody>
<tr>
<th style="width: 15%">字符</th>
<th style="width: 15%">实体编号</th>
<th style="width: 15%">实体名称</th>
<th style="width: 55%">描述</th>
</tr>
<tr>
<td> </td>
<td>0 - 31</td>
<td> </td>
<td>Control characters</td>
</tr>
<tr>
<td> </td>
<td>32</td>
<td> </td>
<td>space</td>
</tr>
<tr>
<td>!</td>
<td>33</td>
<td> </td>
<td>exclamation mark</td>
</tr>
<tr>
<td>"</td>
<td>34</td>
<td>&quot;</td>
<td>quotation mark</td>
</tr>
<tr>
<td>#</td>
<td>35</td>
<td> </td>
<td>number sign</td>
</tr>
<tr>
<td>$</td>
<td>36</td>
<td> </td>
<td>dollar sign</td>
</tr>
<tr>
<td>%</td>
<td>37</td>
<td> </td>
<td>percent sign</td>
</tr>
<tr>
<td>&</td>
<td>38</td>
<td>&amp;</td>
<td>ampersand</td>
</tr>
<tr>
<td>'</td>
<td>39</td>
<td> </td>
<td>apostrophe</td>
</tr>
<tr>
<td>(</td>
<td>40</td>
<td> </td>
<td>left parenthesis</td>
</tr>
<tr>
<td>)</td>
<td>41</td>
<td> </td>
<td>right parenthesis</td>
</tr>
<tr>
<td>*</td>
<td>42</td>
<td> </td>
<td>asterisk</td>
</tr>
<tr>
<td>+</td>
<td>43</td>
<td> </td>
<td>plus sign</td>
</tr>
<tr>
<td>,</td>
<td>44</td>
<td> </td>
<td>comma</td>
</tr>
<tr>
<td>-</td>
<td>45</td>
<td> </td>
<td>hyphen-minus</td>
</tr>
<tr>
<td>.</td>
<td>46</td>
<td> </td>
<td>full stop</td>
</tr>
<tr>
<td>/</td>
<td>47</td>
<td> </td>
<td>solidus</td>
</tr>
<tr>
<td>0</td>
<td>48</td>
<td> </td>
<td>digit zero</td>
</tr>
<tr>
<td>1</td>
<td>49</td>
<td> </td>
<td>digit one</td>
</tr>
<tr>
<td>2</td>
<td>50</td>
<td> </td>
<td>digit two</td>
</tr>
<tr>
<td>3</td>
<td>51</td>
<td> </td>
<td>digit three</td>
</tr>
<tr>
<td>4</td>
<td>52</td>
<td> </td>
<td>digit four</td>
</tr>
<tr>
<td>5</td>
<td>53</td>
<td> </td>
<td>digit five</td>
</tr>
<tr>
<td>6</td>
<td>54</td>
<td> </td>
<td>digit six</td>
</tr>
<tr>
<td>7</td>
<td>55</td>
<td> </td>
<td>digit seven</td>
</tr>
<tr>
<td>8</td>
<td>56</td>
<td> </td>
<td>digit eight</td>
</tr>
<tr>
<td>9</td>
<td>57</td>
<td> </td>
<td>digit nine</td>
</tr>
<tr>
<td>:</td>
<td>58</td>
<td> </td>
<td>colon</td>
</tr>
<tr>
<td>;</td>
<td>59</td>
<td> </td>
<td>semicolon</td>
</tr>
<tr>
<td><</td>
<td>60</td>
<td>&lt;</td>
<td>less-than sign</td>
</tr>
<tr>
<td>=</td>
<td>61</td>
<td> </td>
<td>equals sign</td>
</tr>
<tr>
<td>></td>
<td>62</td>
<td>&gt;</td>
<td>greater-than sign</td>
</tr>
<tr>
<td>?</td>
<td>63</td>
<td> </td>
<td>question mark</td>
</tr>
<tr>
<td>@</td>
<td>64</td>
<td> </td>
<td>commercial at</td>
</tr>
<tr>
<td>A</td>
<td>65</td>
<td> </td>
<td>Latin capital letter A</td>
</tr>
<tr>
<td>B</td>
<td>66</td>
<td> </td>
<td>Latin capital letter B</td>
</tr>
<tr>
<td>C</td>
<td>67</td>
<td> </td>
<td>Latin capital letter C</td>
</tr>
<tr>
<td>D</td>
<td>68</td>
<td> </td>
<td>Latin capital letter D</td>
</tr>
<tr>
<td>E</td>
<td>69</td>
<td> </td>
<td>Latin capital letter E</td>
</tr>
<tr>
<td>F</td>
<td>70</td>
<td> </td>
<td>Latin capital letter F</td>
</tr>
<tr>
<td>G</td>
<td>71</td>
<td> </td>
<td>Latin capital letter G</td>
</tr>
<tr>
<td>H</td>
<td>72</td>
<td> </td>
<td>Latin capital letter H</td>
</tr>
<tr>
<td>I</td>
<td>73</td>
<td> </td>
<td>Latin capital letter I</td>
</tr>
<tr>
<td>J</td>
<td>74</td>
<td> </td>
<td>Latin capital letter J</td>
</tr>
<tr>
<td>K</td>
<td>75</td>
<td> </td>
<td>Latin capital letter K</td>
</tr>
<tr>
<td>L</td>
<td>76</td>
<td> </td>
<td>Latin capital letter L</td>
</tr>
<tr>
<td>M</td>
<td>77</td>
<td> </td>
<td>Latin capital letter M</td>
</tr>
<tr>
<td>N</td>
<td>78</td>
<td> </td>
<td>Latin capital letter N</td>
</tr>
<tr>
<td>O</td>
<td>79</td>
<td> </td>
<td>Latin capital letter O</td>
</tr>
<tr>
<td>P</td>
<td>80</td>
<td> </td>
<td>Latin capital letter P</td>
</tr>
<tr>
<td>Q</td>
<td>81</td>
<td> </td>
<td>Latin capital letter Q</td>
</tr>
<tr>
<td>R</td>
<td>82</td>
<td> </td>
<td>Latin capital letter R</td>
</tr>
<tr>
<td>S</td>
<td>83</td>
<td> </td>
<td>Latin capital letter S</td>
</tr>
<tr>
<td>T</td>
<td>84</td>
<td> </td>
<td>Latin capital letter T</td>
</tr>
<tr>
<td>U</td>
<td>85</td>
<td> </td>
<td>Latin capital letter U</td>
</tr>
<tr>
<td>V</td>
<td>86</td>
<td> </td>
<td>Latin capital letter V</td>
</tr>
<tr>
<td>W</td>
<td>87</td>
<td> </td>
<td>Latin capital letter W</td>
</tr>
<tr>
<td>X</td>
<td>88</td>
<td> </td>
<td>Latin capital letter X</td>
</tr>
<tr>
<td>Y</td>
<td>89</td>
<td> </td>
<td>Latin capital letter Y</td>
</tr>
<tr>
<td>Z</td>
<td>90</td>
<td> </td>
<td>Latin capital letter Z</td>
</tr>
<tr>
<td>[</td>
<td>91</td>
<td> </td>
<td>left square bracket</td>
</tr>
<tr>
<td>\</td>
<td>92</td>
<td> </td>
<td>reverse solidus</td>
</tr>
<tr>
<td>]</td>
<td>93</td>
<td> </td>
<td>right square bracket</td>
</tr>
<tr>
<td>^</td>
<td>94</td>
<td> </td>
<td>circumflex accent</td>
</tr>
<tr>
<td>_</td>
<td>95</td>
<td> </td>
<td>low line</td>
</tr>
<tr>
<td>`</td>
<td>96</td>
<td> </td>
<td>grave accent</td>
</tr>
<tr>
<td>a</td>
<td>97</td>
<td> </td>
<td>Latin small letter a</td>
</tr>
<tr>
<td>b</td>
<td>98</td>
<td> </td>
<td>Latin small letter b</td>
</tr>
<tr>
<td>c</td>
<td>99</td>
<td> </td>
<td>Latin small letter c</td>
</tr>
<tr>
<td>d</td>
<td>100</td>
<td> </td>
<td>Latin small letter d</td>
</tr>
<tr>
<td>e</td>
<td>101</td>
<td> </td>
<td>Latin small letter e</td>
</tr>
<tr>
<td>f</td>
<td>102</td>
<td> </td>
<td>Latin small letter f</td>
</tr>
<tr>
<td>g</td>
<td>103</td>
<td> </td>
<td>Latin small letter g</td>
</tr>
<tr>
<td>h</td>
<td>104</td>
<td> </td>
<td>Latin small letter h</td>
</tr>
<tr>
<td>i</td>
<td>105</td>
<td> </td>
<td>Latin small letter i</td>
</tr>
<tr>
<td>j</td>
<td>106</td>
<td> </td>
<td>Latin small letter j</td>
</tr>
<tr>
<td>k</td>
<td>107</td>
<td> </td>
<td>Latin small letter k</td>
</tr>
<tr>
<td>l</td>
<td>108</td>
<td> </td>
<td>Latin small letter l</td>
</tr>
<tr>
<td>m</td>
<td>109</td>
<td> </td>
<td>Latin small letter m</td>
</tr>
<tr>
<td>n</td>
<td>110</td>
<td> </td>
<td>Latin small letter n</td>
</tr>
<tr>
<td>o</td>
<td>111</td>
<td> </td>
<td>Latin small letter o</td>
</tr>
<tr>
<td>p</td>
<td>112</td>
<td> </td>
<td>Latin small letter p</td>
</tr>
<tr>
<td>q</td>
<td>113</td>
<td> </td>
<td>Latin small letter q</td>
</tr>
<tr>
<td>r</td>
<td>114</td>
<td> </td>
<td>Latin small letter r</td>
</tr>
<tr>
<td>s</td>
<td>115</td>
<td> </td>
<td>Latin small letter s</td>
</tr>
<tr>
<td>t</td>
<td>116</td>
<td> </td>
<td>Latin small letter t</td>
</tr>
<tr>
<td>u</td>
<td>117</td>
<td> </td>
<td>Latin small letter u</td>
</tr>
<tr>
<td>v</td>
<td>118</td>
<td> </td>
<td>Latin small letter v</td>
</tr>
<tr>
<td>w</td>
<td>119</td>
<td> </td>
<td>Latin small letter w</td>
</tr>
<tr>
<td>x</td>
<td>120</td>
<td> </td>
<td>Latin small letter x</td>
</tr>
<tr>
<td>y</td>
<td>121</td>
<td> </td>
<td>Latin small letter y</td>
</tr>
<tr>
<td>z</td>
<td>122</td>
<td> </td>
<td>Latin small letter z</td>
</tr>
<tr>
<td>{</td>
<td>123</td>
<td> </td>
<td>left curly bracket</td>
</tr>
<tr>
<td>|</td>
<td>124</td>
<td> </td>
<td>vertical line</td>
</tr>
<tr>
<td>}</td>
<td>125</td>
<td> </td>
<td>right curly bracket</td>
</tr>
<tr>
<td>~</td>
<td>126</td>
<td> </td>
<td>tilde</td>
</tr>
<tr>
<td> </td>
<td>127</td>
<td> </td>
<td>Control character</td>
</tr>
</tbody>
</table>
</div>
<hr>
<div>
<h2>ISO-8859-1 和 Windows-1252</h2>
<p>ISO-8859-1 与 Windows-1252 非常相似。</p>
<p>在 ISO-8859-1 中,未定义 128 到 159 之间的字符。</p>
<p>
在 Windows-1252 中,从 12 8到 159 的字符用于某些有用的符号。
</p>
<p>
由于许多网站都声明 ISO-8859-1 并使用从 128 到 159
的值,就好像它们使用的是 Windows-1252
一样,大多数浏览器将显示 Windows-1252 字符集中的这些字符。
</p>
<table class="dataintable">
<tbody>
<tr>
<th style="width: 15%">字符</th>
<th style="width: 15%">实体编号</th>
<th style="width: 15%">实体名称</th>
<th>描述</th>
</tr>
<tr>
<td>€</td>
<td>128</td>
<td>&euro;</td>
<td>euro sign</td>
</tr>
<tr>
<td> </td>
<td>129</td>
<td> </td>
<td>NOT USED</td>
</tr>
<tr>
<td>‚</td>
<td>130</td>
<td>&sbquo;</td>
<td>single low-9 quotation mark</td>
</tr>
<tr>
<td>ƒ</td>
<td>131</td>
<td>&fnof;</td>
<td>Latin small letter f with hook</td>
</tr>
<tr>
<td>„</td>
<td>132</td>
<td>&bdquo;</td>
<td>double low-9 quotation mark</td>
</tr>
<tr>
<td>…</td>
<td>133</td>
<td>&hellip;</td>
<td>horizontal ellipsis</td>
</tr>
<tr>
<td>†</td>
<td>134</td>
<td>&dagger;</td>
<td>dagger</td>
</tr>
<tr>
<td>‡</td>
<td>135</td>
<td>&Dagger;</td>
<td>double dagger</td>
</tr>
<tr>
<td>ˆ</td>
<td>136</td>
<td>&circ;</td>
<td>modifier letter circumflex accent</td>
</tr>
<tr>
<td>‰</td>
<td>137</td>
<td>&permil;</td>
<td>per mille sign</td>
</tr>
<tr>
<td>Š</td>
<td>138</td>
<td>&Scaron;</td>
<td>Latin capital letter S with caron</td>
</tr>
<tr>
<td>‹</td>
<td>139</td>
<td>&lsaquo;</td>
<td>single left-pointing angle quotation mark</td>
</tr>
<tr>
<td>Œ</td>
<td>140</td>
<td>&OElig;</td>
<td>Latin capital ligature OE</td>
</tr>
<tr>
<td> </td>
<td>141</td>
<td> </td>
<td>NOT USED</td>
</tr>
<tr>
<td>Ž</td>
<td>142</td>
<td>&Zcaron;</td>
<td>Latin capital letter Z with caron</td>
</tr>
<tr>
<td> </td>
<td>143</td>
<td> </td>
<td>NOT USED</td>
</tr>
<tr>
<td> </td>
<td>144</td>
<td> </td>
<td>NOT USED</td>
</tr>
<tr>
<td>‘</td>
<td>145</td>
<td>&lsquo;</td>
<td>left single quotation mark</td>
</tr>
<tr>
<td>’</td>
<td>146</td>
<td>&rsquo;</td>
<td>right single quotation mark</td>
</tr>
<tr>
<td>“</td>
<td>147</td>
<td>&ldquo;</td>
<td>left double quotation mark</td>
</tr>
<tr>
<td>”</td>
<td>148</td>
<td>&rdquo;</td>
<td>right double quotation mark</td>
</tr>
<tr>
<td>•</td>
<td>149</td>
<td>&bull;</td>
<td>bullet</td>
</tr>
<tr>
<td>–</td>
<td>150</td>
<td>&ndash;</td>
<td>en dash</td>
</tr>
<tr>
<td>—</td>
<td>151</td>
<td>&mdash;</td>
<td>em dash</td>
</tr>
<tr>
<td>˜</td>
<td>152</td>
<td>&tilde;</td>
<td>small tilde</td>
</tr>
<tr>
<td>™</td>
<td>153</td>
<td>&trade;</td>
<td>trade mark sign</td>
</tr>
<tr>
<td>š</td>
<td>154</td>
<td>&scaron;</td>
<td>Latin small letter s with caron</td>
</tr>
<tr>
<td>›</td>
<td>155</td>
<td>&rsaquo;</td>
<td>single right-pointing angle quotation mark</td>
</tr>
<tr>
<td>œ</td>
<td>156</td>
<td>&oelig;</td>
<td>Latin small ligature oe</td>
</tr>
<tr>
<td> </td>
<td>157</td>
<td> </td>
<td>NOT USED</td>
</tr>
<tr>
<td>ž</td>
<td>158</td>
<td>&zcaron;</td>
<td>Latin small letter z with caron</td>
</tr>
<tr>
<td>Ÿ</td>
<td>159</td>
<td>&Yuml;</td>
<td>Latin capital letter Y with diaeresis</td>
</tr>
</tbody>
</table>
</div>
<hr>
<div>
<h2>ISO-8859-1 符号</h2>
<p>
ISO-8859-1(从 160 到 191
的编码)的下一部分包含常用的特殊字符。
</p>
<table class="dataintable">
<tbody>
<tr>
<th style="width: 15%">字符</th>
<th style="width: 15%">实体编号</th>
<th style="width: 15%">实体名称</th>
<th>描述</th>
</tr>
<tr>
<td> </td>
<td>&#160;</td>
<td>&nbsp;</td>
<td>non-breaking space</td>
</tr>
<tr>
<td>¡</td>
<td>&#161;</td>
<td>&iexcl;</td>
<td>inverted exclamation mark</td>
</tr>
<tr>
<td>¢</td>
<td>&#162;</td>
<td>&cent;</td>
<td>cent</td>
</tr>
<tr>
<td>£</td>
<td>&#163;</td>
<td>&pound;</td>
<td>pound</td>
</tr>
<tr>
<td>¤</td>
<td>&#164;</td>
<td>&curren;</td>
<td>currency</td>
</tr>
<tr>
<td>¥</td>
<td>&#165;</td>
<td>&yen;</td>
<td>yen</td>
</tr>
<tr>
<td>¦</td>
<td>&#166;</td>
<td>&brvbar;</td>
<td>broken vertical bar</td>
</tr>
<tr>
<td>§</td>
<td>&#167;</td>
<td>&sect;</td>
<td>section</td>
</tr>
<tr>
<td>¨</td>
<td>&#168;</td>
<td>&uml;</td>
<td>spacing diaeresis</td>
</tr>
<tr>
<td>©</td>
<td>&#169;</td>
<td>&copy;</td>
<td>copyright</td>
</tr>
<tr>
<td>ª</td>
<td>&#170;</td>
<td>&ordf;</td>
<td>feminine ordinal indicator</td>
</tr>
<tr>
<td>«</td>
<td>&#171;</td>
<td>&laquo;</td>
<td>angle quotation mark (left)</td>
</tr>
<tr>
<td>¬</td>
<td>&#172;</td>
<td>&not;</td>
<td>negation</td>
</tr>
<tr>
<td></td>
<td>&#173;</td>
<td>&shy;</td>
<td>soft hyphen</td>
</tr>
<tr>
<td>®</td>
<td>&#174;</td>
<td>&reg;</td>
<td>registered trademark</td>
</tr>
<tr>
<td>¯</td>
<td>&#175;</td>
<td>&macr;</td>
<td>spacing macron</td>
</tr>
<tr>
<td>°</td>
<td>&#176;</td>
<td>&deg;</td>
<td>degree</td>
</tr>
<tr>
<td>±</td>
<td>&#177;</td>
<td>&plusmn;</td>
<td>plus-or-minus</td>
</tr>
<tr>
<td>²</td>
<td>&#178;</td>
<td>&sup2;</td>
<td>superscript 2</td>
</tr>
<tr>
<td>³</td>
<td>&#179;</td>
<td>&sup3;</td>
<td>superscript 3</td>
</tr>
<tr>
<td>´</td>
<td>&#180;</td>
<td>&acute;</td>
<td>spacing acute</td>
</tr>
<tr>
<td>µ</td>
<td>&#181;</td>
<td>&micro;</td>
<td>micro</td>
</tr>
<tr>
<td>¶</td>
<td>&#182;</td>
<td>&para;</td>
<td>paragraph</td>
</tr>
<tr>
<td>·</td>
<td>&#183;</td>
<td>&middot;</td>
<td>middle dot</td>
</tr>
<tr>
<td>¸</td>
<td>&#184;</td>
<td>&cedil;</td>
<td>spacing cedilla</td>
</tr>
<tr>
<td>¹</td>
<td>&#185;</td>
<td>&sup1;</td>
<td>superscript 1</td>
</tr>
<tr>
<td>º</td>
<td>&#186;</td>
<td>&ordm;</td>
<td>masculine ordinal indicator</td>
</tr>
<tr>
<td>»</td>
<td>&#187;</td>
<td>&raquo;</td>
<td>angle quotation mark (right)</td>
</tr>
<tr>
<td>¼</td>
<td>&#188;</td>
<td>&frac14;</td>
<td>fraction 1/4</td>
</tr>
<tr>
<td>½</td>
<td>&#189;</td>
<td>&frac12;</td>
<td>fraction 1/2</td>
</tr>
<tr>
<td>¾</td>
<td>&#190;</td>
<td>&frac34;</td>
<td>fraction 3/4</td>
</tr>
<tr>
<td>¿</td>
<td>&#191;</td>
<td>&iquest;</td>
<td>inverted question mark</td>
</tr>
</tbody>
</table>
</div>
<hr>
<div>
<h2>ISO-8859-1 字符</h2>
<p>
ISO-8859-1 的较高部分(从 192 到 255 的编码,215 和 247
除外)包含西欧国家/地区使用的字符。
</p>
<table class="dataintable">
<tbody>
<tr>
<th style="width: 15%">字符</th>
<th style="width: 15%">实体编号</th>
<th style="width: 15%">实体名称</th>
<th>描述</th>
</tr>
<tr>
<td>À</td>
<td>&#192;</td>
<td>&Agrave;</td>
<td>capital a, grave accent</td>
</tr>
<tr>
<td>Á</td>
<td>&#193;</td>
<td>&Aacute;</td>
<td>capital a, acute accent</td>
</tr>
<tr>
<td>Â</td>
<td>&#194;</td>
<td>&Acirc;</td>
<td>capital a, circumflex accent</td>
</tr>
<tr>
<td>Ã</td>
<td>&#195;</td>
<td>&Atilde;</td>
<td>capital a, tilde</td>
</tr>
<tr>
<td>Ä</td>
<td>&#196;</td>
<td>&Auml;</td>
<td>capital a, umlaut mark</td>
</tr>
<tr>
<td>Å</td>
<td>&#197;</td>
<td>&Aring;</td>
<td>capital a, ring</td>
</tr>
<tr>
<td>Æ</td>
<td>&#198;</td>
<td>&AElig;</td>
<td>capital ae</td>
</tr>
<tr>
<td>Ç</td>
<td>&#199;</td>
<td>&Ccedil;</td>
<td>capital c, cedilla</td>
</tr>
<tr>
<td>È</td>
<td>&#200;</td>
<td>&Egrave;</td>
<td>capital e, grave accent</td>
</tr>
<tr>
<td>É</td>
<td>&#201;</td>
<td>&Eacute;</td>
<td>capital e, acute accent</td>
</tr>
<tr>
<td>Ê</td>
<td>&#202;</td>
<td>&Ecirc;</td>
<td>capital e, circumflex accent</td>
</tr>
<tr>
<td>Ë</td>
<td>&#203;</td>
<td>&Euml;</td>
<td>capital e, umlaut mark</td>
</tr>
<tr>
<td>Ì</td>
<td>&#204;</td>
<td>&Igrave;</td>
<td>capital i, grave accent</td>
</tr>
<tr>
<td>Í</td>
<td>&#205;</td>
<td>&Iacute;</td>
<td>capital i, acute accent</td>
</tr>
<tr>
<td>Î</td>
<td>&#206;</td>
<td>&Icirc;</td>
<td>capital i, circumflex accent</td>
</tr>
<tr>
<td>Ï</td>
<td>&#207;</td>
<td>&Iuml;</td>
<td>capital i, umlaut mark</td>
</tr>
<tr>
<td>Ð</td>
<td>&#208;</td>
<td>&ETH;</td>
<td>capital eth, Icelandic</td>
</tr>
<tr>
<td>Ñ</td>
<td>&#209;</td>
<td>&Ntilde;</td>
<td>capital n, tilde</td>
</tr>
<tr>
<td>Ò</td>
<td>&#210;</td>
<td>&Ograve;</td>
<td>capital o, grave accent</td>
</tr>
<tr>
<td>Ó</td>
<td>&#211;</td>
<td>&Oacute;</td>
<td>capital o, acute accent</td>
</tr>
<tr>
<td>Ô</td>
<td>&#212;</td>
<td>&Ocirc;</td>
<td>capital o, circumflex accent</td>
</tr>
<tr>
<td>Õ</td>
<td>&#213;</td>
<td>&Otilde;</td>
<td>capital o, tilde</td>
</tr>
<tr>
<td>Ö</td>
<td>&#214;</td>
<td>&Ouml;</td>
<td>capital o, umlaut mark</td>
</tr>
<tr>
<td>×</td>
<td>&#215;</td>
<td>&times;</td>
<td>multiplication</td>
</tr>
<tr>
<td>Ø</td>
<td>&#216;</td>
<td>&Oslash;</td>
<td>capital o, slash</td>
</tr>
<tr>
<td>Ù</td>
<td>&#217;</td>
<td>&Ugrave;</td>
<td>capital u, grave accent</td>
</tr>
<tr>
<td>Ú</td>
<td>&#218;</td>
<td>&Uacute;</td>
<td>capital u, acute accent</td>
</tr>
<tr>
<td>Û</td>
<td>&#219;</td>
<td>&Ucirc;</td>
<td>capital u, circumflex accent</td>
</tr>
<tr>
<td>Ü</td>
<td>&#220;</td>
<td>&Uuml;</td>
<td>capital u, umlaut mark</td>
</tr>
<tr>
<td>Ý</td>
<td>&#221;</td>
<td>&Yacute;</td>
<td>capital y, acute accent</td>
</tr>
<tr>
<td>Þ</td>
<td>&#222;</td>
<td>&THORN;</td>
<td>capital THORN, Icelandic</td>
</tr>
<tr>
<td>ß</td>
<td>&#223;</td>
<td>&szlig;</td>
<td>small sharp s, German</td>
</tr>
<tr>
<td>à</td>
<td>&#224;</td>
<td>&agrave;</td>
<td>small a, grave accent</td>
</tr>
<tr>
<td>á</td>
<td>&#225;</td>
<td>&aacute;</td>
<td>small a, acute accent</td>
</tr>
<tr>
<td>â</td>
<td>&#226;</td>
<td>&acirc;</td>
<td>small a, circumflex accent</td>
</tr>
<tr>
<td>ã</td>
<td>&#227;</td>
<td>&atilde;</td>
<td>small a, tilde</td>
</tr>
<tr>
<td>ä</td>
<td>&#228;</td>
<td>&auml;</td>
<td>small a, umlaut mark</td>
</tr>
<tr>
<td>å</td>
<td>&#229;</td>
<td>&aring;</td>
<td>small a, ring</td>
</tr>
<tr>
<td>æ</td>
<td>&#230;</td>
<td>&aelig;</td>
<td>small ae</td>
</tr>
<tr>
<td>ç</td>
<td>&#231;</td>
<td>&ccedil;</td>
<td>small c, cedilla</td>
</tr>
<tr>
<td>è</td>
<td>&#232;</td>
<td>&egrave;</td>
<td>small e, grave accent</td>
</tr>
<tr>
<td>é</td>
<td>&#233;</td>
<td>&eacute;</td>
<td>small e, acute accent</td>
</tr>
<tr>
<td>ê</td>
<td>&#234;</td>
<td>&ecirc;</td>
<td>small e, circumflex accent</td>
</tr>
<tr>
<td>ë</td>
<td>&#235;</td>
<td>&euml;</td>
<td>small e, umlaut mark</td>
</tr>
<tr>
<td>ì</td>
<td>&#236;</td>
<td>&igrave;</td>
<td>small i, grave accent</td>
</tr>
<tr>
<td>í</td>
<td>&#237;</td>
<td>&iacute;</td>
<td>small i, acute accent</td>
</tr>
<tr>
<td>î</td>
<td>&#238;</td>
<td>&icirc;</td>
<td>small i, circumflex accent</td>
</tr>
<tr>
<td>ï</td>
<td>&#239;</td>
<td>&iuml;</td>
<td>small i, umlaut mark</td>
</tr>
<tr>
<td>ð</td>
<td>&#240;</td>
<td>&eth;</td>
<td>small eth, Icelandic</td>
</tr>
<tr>
<td>ñ</td>
<td>&#241;</td>
<td>&ntilde;</td>
<td>small n, tilde</td>
</tr>
<tr>
<td>ò</td>
<td>&#242;</td>
<td>&ograve;</td>
<td>small o, grave accent</td>
</tr>
<tr>
<td>ó</td>
<td>&#243;</td>
<td>&oacute;</td>
<td>small o, acute accent</td>
</tr>
<tr>
<td>ô</td>
<td>&#244;</td>
<td>&ocirc;</td>
<td>small o, circumflex accent</td>
</tr>
<tr>
<td>õ</td>
<td>&#245;</td>
<td>&otilde;</td>
<td>small o, tilde</td>
</tr>
<tr>
<td>ö</td>
<td>&#246;</td>
<td>&ouml;</td>
<td>small o, umlaut mark</td>
</tr>
<tr>
<td>÷</td>
<td>&#247;</td>
<td>&divide;</td>
<td>division</td>
</tr>
<tr>
<td>ø</td>
<td>&#248;</td>
<td>&oslash;</td>
<td>small o, slash</td>
</tr>
<tr>
<td>ù</td>
<td>&#249;</td>
<td>&ugrave;</td>
<td>small u, grave accent</td>
</tr>
<tr>
<td>ú</td>
<td>&#250;</td>
<td>&uacute;</td>
<td>small u, acute accent</td>
</tr>
<tr>
<td>û</td>
<td>&#251;</td>
<td>&ucirc;</td>
<td>small u, circumflex accent</td>
</tr>
<tr>
<td>ü</td>
<td>&#252;</td>
<td>&uuml;</td>
<td>small u, umlaut mark</td>
</tr>
<tr>
<td>ý</td>
<td>&#253;</td>
<td>&yacute;</td>
<td>small y, acute accent</td>
</tr>
<tr>
<td>þ</td>
<td>&#254;</td>
<td>&thorn;</td>
<td>small thorn, Icelandic</td>
</tr>
<tr>
<td>ÿ</td>
<td>&#255;</td>
<td>&yuml;</td>
<td>small y, umlaut mark</td>
</tr>
</tbody>
</table>
</div>
<hr>
<div>
<h2>ISO-8859 的变体</h2>
<table class="dataintable">
<tbody>
<tr>
<th style="width: 20%">编号</th>
<th style="width: 20%">描述</th>
<th>覆盖</th>
</tr>
<tr>
<td>8859-1</td>
<td>Latin 1</td>
<td>
北美,西欧,拉丁美洲,加勒比海,加拿大,非洲。
</td>
</tr>
<tr>
<td>8859-2</td>
<td>Latin 2</td>
<td>东欧。</td>
</tr>
<tr>
<td>8859-3</td>
<td>Latin 3</td>
<td>欧洲东南部,世界语,以及其他。</td>
</tr>
<tr>
<td>8859-4</td>
<td>Latin 4</td>
<td>
斯堪的纳维亚/波罗的海(以及 ISO-8859-1
中未包含的其他语言)。
</td>
</tr>
<tr>
<td>8859-5</td>
<td>Latin/Cyrillic</td>
<td>
西里尔字母。保加利亚语,白俄罗斯语,俄语和马其顿语。
</td>
</tr>
<tr>
<td>8859-6</td>
<td>Latin/Arabic</td>
<td>阿拉伯字母。</td>
</tr>
<tr>
<td>8859-7</td>
<td>Latin/Greek</td>
<td>现代希腊字母和源自希腊语的数学符号。</td>
</tr>
<tr>
<td>8859-8</td>
<td>Latin/Hebrew</td>
<td>希伯来语字母。</td>
</tr>
<tr>
<td>8859-9</td>
<td>Latin/Turkish</td>
<td>
土耳其字母。与 ISO-8859-1
相同,除了土耳其语字符取代了冰岛语。
</td>
</tr>
<tr>
<td>8859-10</td>
<td>Latin/Nordic</td>
<td>北欧字母。拉普兰,北欧,爱斯基摩语。</td>
</tr>
<tr>
<td>8859-15</td>
<td>Latin 9 (Latin 0)</td>
<td>
类似于ISO-8859-1,但是用欧元符号和一些其他丢失的字符替换了一些不太常见的符号。
</td>
</tr>
<tr>
<td>2022-JP</td>
<td>Latin/Japanese 1</td>
<td>日语字母第 1 部分。</td>
</tr>
<tr>
<td>2022-JP-2</td>
<td>Latin/Japanese 2</td>
<td>日语字母第 2 部分。</td>
</tr>
<tr>
<td>2022-KR</td>
<td>Latin/Korean 1</td>
<td>韩文字母。</td>
</tr>
</tbody>
</table>
</div>
<hr/>
<p>根据本例代码,就知道这些实体在网页中如何显示。</p>
<p>资料来源:https://www.w3school.com.cn/</p>
<p>
HTML实体是一种在HTML文档中表示特殊字符的方法,它用来确保浏览器正确解析和显示那些具有特定含义或无法直接输入的字符。在HTML中,一些字符(如
<、>、&、" 和 ')因为它们有特殊的语法用途(例如用于定义标签、实体引用或其他结构),所以不能直接在文本内容中使用。
HTML实体通常有两种表示形式:
实体名称:以`&`开始,后跟实体名称,最后以;结束。例如:
小于号 `(<)` 的实体名称是 `<`,所以要显示 `<` 字符本身,需要写成 `<`。
大于号 `(>)` 的实体名称是 `>`,因此显示大于号时应写为 `>`。
实体编号:同样以`&`开始,但后面跟随的是井字号 `(#)` 加上字符对应的十进制或十六进制Unicode编码,最后也以;结束。例如:
小于号 `(<)` 的实体编号是 `<` 或 `<`。
空格字符可以使用实体编号 ` ` 或 ` ` 来插入非换行空格。
使用HTML实体可以帮助网页开发者避免因特殊字符导致的语法错误,并确保这些字符按照预期显示给用户,而不是被浏览器当作HTML代码来解析。
</p>
</div>
</div>
</body>
<footer style="
text-align: center;
margin: 30px;
font-size: 1.5rem;
font-weight: bold;
color: #ffcc00;
">
HTML+CSS+JavaScript编程配套代码 作者:明月看潮生
</footer>
</html>
二、解释
HTML实体是一种用于表示特殊字符的编码方式。在HTML中,有一些字符具有特殊的含义,如小于号 (<) 和大于号 (>) 是用于标签的起始和结束,如果直接在HTML文档中使用这些字符,会被解析为标签,而不是作为普通字符显示。为了在HTML中显示这些特殊字符,可以使用实体编码来表示它们。
HTML实体由一个实体名称或实体编号组成,使用特殊的格式来表示。例如,小于号可以用实体名称<
或实体编号<
来表示。
HTML实体可以用于表示各种特殊字符,包括但不限于:小于号 (<)、大于号 (>)、和号 (&)、引号 (")、撇号 (')、版权符号 (©)、注册商标符号 (®)等。
使用HTML实体可以确保在HTML文档中正确显示特殊字符,特别是在需要展示特殊字符的地方,如文章内容、表单输入等。