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

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.

主站蜘蛛池模板: 厦门市| 静安区| 建始县| 吉水县| 洛宁县| 罗定市| 广汉市| 什邡市| 信宜市| 北海市| 扶绥县| 建昌县| 文安县| 丰县| 江都市| 诸暨市| 山阳县| 永仁县| 洪江市| 石城县| 武清区| 永德县| 奉新县| 彝良县| 安庆市| 新宾| 泰宁县| 应城市| 巴楚县| 兖州市| 疏附县| 阿拉善右旗| 邵武市| 韶关市| 万盛区| 靖州| 惠安县| 浠水县| 元谋县| 富顺县| 民和|