html - The Hash Symbol in Numerical character references -


my question similar this, didn't find answer there.

from link, gather html supports display of iso 8859/1 8-bit single-byte coded graphic characters, through numerical representations such as:

&32; space.

&33; exclamation mark.

the above won't resolved unless entity names prefixed #:

  space resolved.

! exclamation mark resolved.

what reason prefixing entity names # symbol these characters, when iso latin 1 character entities not follow same standards. can deduced html parser written in such way deal these, great know why standard introduced in first place.

the full gory details of how these processed detailed in parsing section of html 5 specification. notably want read links "consume character reference".

html 3 never relevant, , html 3.2 superseded long ago. iso documents irrelevant in context.

following parsing algorithm can painful (at least, takes getting used-to), guaranteed correct.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

c# - Retrieve google contact -

javascript - How to insert selected radio button value into table cell -