In HTML, What is the preferred way to specify html codes like "
, and what is the major differences? For example:
" <!-- friendly code -->
" <!-- numerical code -->
" <!-- hex code -->
Which one should I use and would it ever be an issue if one of these gets deprecated?
There really aren't any differences.
"
is processed as "
which is the decimal equivalent of &x22;
which is the ISO 8859-1 equivalent of "
.
The only reason you may be against using "
is because it was mistakenly omitted from the HTML 3.2 specification.
Otherwise it all boils down to personal preference.