"Dennis" <De****@discussions.microsoft.comschrieb:
Just curious as to why replace with ", etc. I generate an HTML code
within VB from a database and save it as an HTM file. It displays fine in
internet explorer. Is there some problem if I were to send this page via
e-mail or something?
There is generally no reason to use '"' instead of the double quotation
mark character except if the encoding used to save the file does not contain
the character (which is very unlikely nowadays) or in attribute values
surrounded by double quotation marks.
Valid XHTML:
* '<img src="1.gif" alt="Bla "Bla" Bla"/>'
* '<img src="1.gif" alt='Bla "Bla" Bla'/>'
Invalid XHTML:
* '<img src="1.gif" alt="Bla "Bla" Bla"/>'
The same applies to ''' vs. the single quotation mark character.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>