官术网_书友最值得收藏!

HTML entities

As we know, all tags begin with a < sign and end with a > sign. Just imagine you want to use one of those as part of your content. This just might confuse the browser. That is why we have HTML entities.

HTML entities are strings that begin with an ampersand and end with a semicolon.

  • This represents the ampersand itself:
    &amp;
  • A very useful HTML entity is the non-breaking space:
    &nbsp;

    It allows you to insert one or more spaces in you content. To use the < or > sign in your content, we have: &lt; and &gt;

  • Also very useful are &eur;, for the Euro symbol, &copy; for the copyright sign, and &reg; for the Registered Trademark sign.
  • Non-English characters can be represented as HTML entities as well, for example, &eacute; for é, &egrave; for è, and &ecirc; for ê.

We recommend you look up some of the online references if you want to see a complete list.

主站蜘蛛池模板: 广东省| 丁青县| 申扎县| 福安市| 长沙县| 舒兰市| 锡林浩特市| 定州市| 平泉县| 高陵县| 仙桃市| 湟源县| 大足县| 二手房| 利川市| 富顺县| 安庆市| 永靖县| 青阳县| 温宿县| 梨树县| 东海县| 马尔康县| 方正县| 西畴县| 南投县| 固原市| 彭阳县| 务川| 都昌县| 巫溪县| 南部县| 科技| 皮山县| 通海县| 沙坪坝区| 凭祥市| 尉犁县| 牟定县| 许昌市| 新安县|