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

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.

主站蜘蛛池模板: 赤城县| 仙桃市| 莱西市| 阜新| 郓城县| 惠州市| 喜德县| 汉中市| 山阳县| 易门县| 大连市| 泌阳县| 岗巴县| 安顺市| 惠东县| 阿荣旗| 伽师县| 安阳市| 柞水县| 泰宁县| 漳浦县| 根河市| 小金县| 奉化市| 安岳县| 永寿县| 苏尼特左旗| 福安市| 广宗县| 东源县| 湖北省| 哈尔滨市| 贵阳市| 佛冈县| 醴陵市| 江川县| 江安县| 高青县| 清流县| 阳曲县| 阜平县|