html - Marquee : element vs. javascript -


i wondering advantages , disadvantages use html tag opposed achieving same scrolling text effect using javascript?

is use of <marquee> html tag encouraged?

you ask

is use of <marquee> html tag encouraged?

the w3.org answers :

no, really. don't use it.

you have no guarantee of marquee element support across future browsers , when it's present, of options might absent in today's browsers (for example tested mdn's examples in chrome , got different bouncing effect in firefox).

most users prefer not see javascript based solution either, if need (like, boss asks it), search of "javascript marquee" gives many solutions, example

very simple, smooth, javascript marquee

javascript based solutions have advantages of being configurable , of not being based on non standard element ("html5 classifies non-conforming feature.").


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -