posts - 262,  comments - 221,  trackbacks - 0

          資料來(lái)源:www.w3cschools.com

          一、HTML中的實(shí)體(又譯轉(zhuǎn)義字符):
          A character entity has three parts: an ampersand (&), an entity name or a # and an entity number, and finally a semicolon (;).

          備注:一個(gè)HTML實(shí)體由三部分構(gòu)成:&符號(hào)、實(shí)體名或者一個(gè)#加實(shí)體編碼、分號(hào)

          To display a less than sign in an HTML document we must write: &lt; or <

          The advantage of using a name instead of a number is that a name is easier to remember. The disadvantage is that not all browsers support the newest entity names, while the support for entity numbers is very good in almost all browsers.

          備注:HTML實(shí)體是大小寫(xiě)敏感的

          二、HTML中顯示多個(gè)空白字符:
          Normally HTML will truncate spaces in your text. If you write 10 spaces in your text HTML will remove 9 of them. To add spaces to your text, use the &nbsp; character entity.

          三、HTML中的常用實(shí)體: 

          Result

          Description

          Entity Name

          Entity Number

          non-breaking space

          &nbsp;

           

          less than

          &lt;

          <

          greater than

          &gt;

          >

          &

          ampersand

          &amp;

          &

          "

          quotation mark

          &quot;

          "

          '

          apostrophe 

          &apos; (does not work in IE)

          '



          -------------------------------------------------------------
          生活就像打牌,不是要抓一手好牌,而是要盡力打好一手爛牌。
          posted on 2008-06-02 22:11 Paul Lin 閱讀(421) 評(píng)論(0)  編輯  收藏 所屬分類(lèi): Web基礎(chǔ)
          <2008年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(21)

          隨筆分類(lèi)

          隨筆檔案

          BlogJava熱點(diǎn)博客

          好友博客

          搜索

          •  

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 营口市| 六枝特区| 义乌市| 黑河市| 静宁县| 寻甸| 合作市| 如东县| 开封市| 禄丰县| 金阳县| 连州市| 濮阳市| 玉山县| 墨竹工卡县| 沛县| 农安县| 衢州市| 万荣县| 玛多县| 怀集县| 福鼎市| 彩票| 荣成市| 开鲁县| 合山市| 康保县| 丹巴县| 临城县| 无棣县| 华阴市| 隆化县| 信丰县| 阳江市| 民勤县| 赞皇县| 东乌珠穆沁旗| 南投市| 金寨县| 云和县| 永嘉县|