Book Image

Practical Web Development

By : Paul Wellens
Book Image

Practical Web Development

By: Paul Wellens

Overview of this book

Table of Contents (23 chapters)
Practical Web Development
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
10
XML and JSON
Index

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.