Is marquee tag valid in XHTML/CSS?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Mds
Forum Contributor
Posts: 110
Joined: Tue Apr 22, 2008 8:56 pm
Contact:

Is marquee tag valid in XHTML/CSS?

Post by Mds »

Hi there.
Is marquee valid in XHTML/CSS? :?
it's not, so what ingrained of it is .
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Is marquee tag valid in XHTML/CSS?

Post by pickle »

No it's not valid XHTML
Mds wrote:it's not, so what ingrained of it is .
I don't understand what you mean by this.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
Mds
Forum Contributor
Posts: 110
Joined: Tue Apr 22, 2008 8:56 pm
Contact:

Re: Is marquee tag valid in XHTML/CSS?

Post by Mds »

hey Briney Mod. thank you
sorry for my English. I'm new. :oops:

I want to know there is a tag to work liking MARQUEE in XHTML ?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Is marquee tag valid in XHTML/CSS?

Post by pickle »

Sorry about the long delay in replying - I was on vacation last week.

No, there is no XHTML equivalent for <marquee>. It's generally considered bad design to use it, or to duplicate it with Javascript. You could write a Javascript function I'm sure, but I'd recommend staying away from that effect if you can.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
Mds
Forum Contributor
Posts: 110
Joined: Tue Apr 22, 2008 8:56 pm
Contact:

Re: Is marquee tag valid in XHTML/CSS?

Post by Mds »

Sorry about the long delay in replying
Not problem. Thank you very much.
I was on vacation last week.
Did you have a good vacation ? :)
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Is marquee tag valid in XHTML/CSS?

Post by pickle »

Yes I did - thank you.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
Sindarin
Forum Regular
Posts: 521
Joined: Tue Sep 25, 2007 8:36 am
Location: Greece

Re: Is marquee tag valid in XHTML/CSS?

Post by Sindarin »

I never liked the marquee tag. It was not as customizable as I wanted it to be. Instead use Javascript, there are some neat examples with stopping the scrolling on MouseOver etc. But yeah, avoid marquee effects when you can, they are quite distracting.
Post Reply