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

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.

主站蜘蛛池模板: 乐昌市| 铁岭市| 古田县| 屏边| 芷江| 环江| 长垣县| 尤溪县| 淮安市| 武邑县| 辽宁省| 阿拉善右旗| 沂南县| 原阳县| 马边| 淮北市| 察隅县| 夏津县| 甘孜| 栖霞市| 泽库县| 秦安县| 武陟县| 湘潭县| 达尔| 东明县| 延安市| 安新县| 邻水| 岳普湖县| 固始县| 安岳县| 化州市| 晴隆县| 比如县| 望都县| 凤台县| 公主岭市| 娄底市| 惠东县| 榆树市|