Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

& or & what should be used for & (ampersand) if we are using UTF-8 in an XHTML document?

Tags:

What is the difference between & and & for & (ampersand)?

What should be used with UTF-8?

like image 913
Jitendra Vyas Avatar asked Jan 26 '10 18:01

Jitendra Vyas


1 Answers

Both are character references and refer to the same character (AMPERSAND, U+0026). & is a named or entity character reference and & is a numerical character reference.

In fact, & is actually just a substitution for & (see list of character entities):

<!ENTITY amp     CDATA "&#38;"   -- ampersand, U+0026 ISOnum --> 
like image 57
Gumbo Avatar answered Sep 30 '22 20:09

Gumbo