Is The Marquee HTML Element Supported by All Browsers Yet

Is the marquee HTML element supported by all browsers yet?

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/

is <marquee> supported in html5?

From MDN

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.

Marquee in CSS3

body {
margin: 20px;
}

.marquee {
height: 25px;
width: 420px;
overflow: hidden;
position: relative;
}

.marquee div {
display: block;
width: 200%;
height: 30px;
position: absolute;
overflow: hidden;
animation: marquee 5s linear infinite;
}

.marquee span {
float: left;
width: 50%;
}

@keyframes marquee {
0% {
left: 0;
}
100% {
left: -100%;
}
}
<div class="marquee">
<div>
<span>You spin me right round, baby. Like a record, baby.</span>
<span>You spin me right round, baby. Like a record, baby.</span>
</div>
</div>

Is marquee tag still implemented in modern browsers?

The <marquee> tag is still supported by IE (8-11), Edge, Chrome, Firefox, and Safari.

Note

That being said, it is non-standard, and generally considered bad practice, especially given that you can do something very similar in CSS.

marquee tag still works, is it okay to use it?

Do not use <marquee>

According to Wikipedia

The marquee tag is a non-standard HTML element which causes text to
scroll up, down, left or right automatically. The tag was first
introduced in early versions of Microsoft's Internet Explorer, and was
compared to Netscape's blink element, as a proprietary non-standard
extension to the HTML standard with usability problems. It is
deprecated by the W3C and not advised by them for use in any HTML
documents.

<marquee> html tag usage/replacment

It is not the effect that is bad. The problem with marquee, blink and font tags is that they convey presentation not structure of your content.

CSS Marquee Compatibility

Currently, CSS3 Marquee is only supported in Webkit browsers (Chrome and Safari).

Notice that the only extension name available for the marquee element is -webkit-marquee (there isn't a -moz-, -o-, -ms- or 'general' marquee equivalent).

The status of Marquee implementation in Firefox is still unconfirmed currently, and I can't find any information on plans to implement it in IE or Opera as of yet.

<marquee> problem in ie8

The marquee element is deprecated. The W3C recommends using <em> and <strong> as alternatives. If you need to mimic the behavior of the marquee, JavaScript has tools for doing that. This discussion has a working JavaScript example.



Related Topics



Leave a reply



Submit