Andrew said:
As I understand it, <img/> is equally valid in HTML 4.01
As someone looking to take HTML 4.01 through XHTML
and on to XML, I am curious as to why you are so keen to
go in the exact opposite direction. Is this all for saving
a few bytes?
Andrew T.
Thanks for the reply Andrew.
HTML 4.01 transitional allows XML style tags for img, input, br and the
like, however HTML 4.01 Strict does not. I tend to prefer XHTML too,
but here is my situation. I have a custom tag library which outputs
the wrapper HTML for applications (top banner, navigation, left and
right columns and footer. Some of the tags (meta, img, link) need to
be outputted the appropriate way in order to validate. When HTML 4.01
and XHTML are passed in as a tag attribute value by the developer
(strict or transitional), either I need to do something in the tag
class...or maybe it can be handled somewhere else. My question is if
there is a way to control this in the JSP...like the jsp

utput tag or
something. This will be used across the company and it needs to be
flexible for the various docttypes, not just my preference.
In addition, the developer's code would need to output appropriately
too. Maybe the answer is to not use JSP documents if not declaring
XHTML.
John