Is it all right to use <marquee>
HTML element yet? I mean, is it supported by all browsers yet? I know Twitter is using it, I think it's quite good for announcements and I'd like to use it, but I don't know if it will work properly yet. Does anyone know?
The HTML <marquee> element is used to insert a scrolling area of text. You can control what happens when the text reaches the edges of its content area using its attributes. The element is obsolete and must not be used. While some browsers still support it, it's not required.
The marquee is not supported in modern html. Chrome dropped support for it a while ago. You need to implement this via CSS3 or Javascript. Further W3C states that it is non standard and should not be used.
One of the big reason why marquee is deprecated is because the element is a 'presentation' element. HTML is a markup language (hence the name Hyper Text Markup Language), and is concerned with the structure of the website. Marquee element is not concerned about the structure, but is only used for presentation purposes.
The <marquee> tag has been deprecated in HTML5 and should no longer be used. It is recommended that you use CSS instead to create a similar scrolling effect. This tag is also commonly referred to as the <marquee> element.
No, it was DEPRECATED by the W3C.
Good luck!
EDIT:
An alternative for marquee would be to display the whole string in a span or div, for accessibility.
EDIT2:
I can't be sure but at the first glance, twitter isn't using it, BUT even if they used it (which they shouldn't) you should not follow their bad example, they can make mistakes too! :)
EDIT3:
You say it works in all browsers, while this may be true, because modern browsers try to be as compatible as possible, but you should consider that that it is good discipline to always go along with the standards.
Why? A lot of reasons: for example, the mobile browser (every day more popular) don't have the memory to spare as desktop browsers like FF Chrome and IE and they might not display toy content correctly.
EDIT4:
I just got that you were talking about "moving" trending topics, I´m really sorry for the dela, for completeness sake, here is one example:
Demo:
http://remysharp.com/demo/marquee.html
Source:
http://remysharp.com/2008/09/10/the-silky-smooth-marquee/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With