|
Posted by A-OK-SITE on 10/21/75 12:01
On Jan 27, 3:46 pm, "Jukka K. Korpela" <jkorp...@cs.tut.fi> wrote:
> Scripsit Jeff:
>
> > I have a bit of javascript that I'd like to hide from the validator.
>
> Consider learning what a validator is before trying to fool it.
>
> Then read the validator's FAQ list when you run into problems.
>
> And if you use JavaScript, just put any bulky code into an external
> file, and any validation issues with it vanish in a puff of logic.
>
> > Should I be using XHTML [...]?
>
> No, especially since you asked.
>
> --
> Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/
Jeff,
Everybody seems to have a preference as to which doc type they prefer
html or xhtml and most of it has no basis in reality. It is like the
old Ford vs Chevy argument in which both are good but for some reason
people just seem to like one more than the other.
XHTML is a cleaner code with features like self-closing tags (et al).
The XHTML is almost always served and interpreted as HTML with the
main difference being the syntax only. The new HTML 5.0 and XHTML 2.0
that is soon to be released is bringing the two types even closer
together based on preliminary information. It is also somewhat like
the difference between strict and transitional and both will render
the page the same with only minute differences in the way the page is
coded.
So in summary pick the language you feel the most comfortable with and
use it. They are both valid and fully functional, and all modern
browsers will render the code just fine. It is just my humble opinion
but I prefer XHTML, but I always preferred a Chevy and a Budweiser
too.
Daniel
http://a-ok-site.com
Navigation:
[Reply to this message]
|