Alex Rivera | Logout

Why are HTML character entities necessary?

Asked 2009-06-19T02:19:11.847
10

Why are HTML character entities necessary? What good are they? I don't see the point.

Edit
Report

2 Answers

23

Two main things.

  1. They let you use characters that are not defined in a current charset. E.g., you can legally use ASCII as the charset, and still include arbitrary Unicode characters thorugh entities.
  2. They let you quote characters that HTML gives special meaning to, as Simon noted.
answered 2009-06-19T02:24:05.350
3

Character entities are used to represent character which are reserved to write HTML for.ex. <, >, /, & etc, if you want to represent these characters in your content you should use character entities, this will help the parser to distinguish between the content and markup

answered 2009-06-19T02:28:35.527

Your Answer