- Practical Web Development
- Paul Wellens
- 155字
- 2021-07-16 13:14:08
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:
&
- A very useful HTML entity is the non-breaking space:
It allows you to insert one or more spaces in you content. To use the
<
or>
sign in your content, we have:<
and>
- Also very useful are
&eur;
, for the Euro symbol,©
for the copyright sign, and®
for the Registered Trademark sign. - Non-English characters can be represented as HTML entities as well, for example,
é
for é,è
for è, andê
for ê.
We recommend you look up some of the online references if you want to see a complete list.
推薦閱讀
- Web程序設計及應用
- Delphi程序設計基礎:教程、實驗、習題
- WSO2 Developer’s Guide
- Designing Hyper-V Solutions
- Implementing Cisco Networking Solutions
- Scientific Computing with Scala
- 快人一步:系統性能提高之道
- 青少年信息學競賽
- Unity 2D Game Development Cookbook
- Mastering Elixir
- Python函數式編程(第2版)
- Java Web開發基礎與案例教程
- Java 11 and 12:New Features
- Serverless工程實踐:從入門到進階
- Visual C++程序開發范例寶典