Is that an error or just a warning?
I suspect, your code should work instead of the warning.
The <marquee> tag is not a valid XHTML tag and that's why your Visual Studio IDE showing the warning message.
Quote:
Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
<marquee> - HTML | MDN[
^]
You may like to check out alternative solution using JQuery-
jQuery Marquee with CSS3 Support | jQuery Plugin Registry[
^]
Hope, it helps :)