www.webdeveloper.com
Results 1 to 5 of 5

Thread: Marquee Support

Hybrid View

  1. #1
    Join Date
    Jul 2011
    Location
    Irish Republic
    Posts
    64

    Arrow Marquee Support

    I am validating my webpages using W3C Mark Up Validating Service. I have a Marquee tag installed as follows:

    <div><font color="#000000" size="2"<marquee direction="left" width="100%" scrollamount="2"><strong><i>A tailored 'Webitry' website to promote your business.......</i></strong></marquee></font></div>

    The validator service indicates that I may not be using the correct DOCTYPE to support the Marquee tag!

    I am using DOCTYPE <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    Do I need to change the DOCTYPE?

  2. #2
    Join Date
    Jul 2006
    Posts
    207
    The marquee tag is a non-standard HTML tag and won't validate under any doctype. That's why it's recommended JavaScript be used for marquee instead of the non-standard tag.

  3. #3
    Join Date
    Aug 2011
    Posts
    22
    Quote Originally Posted by webiter View Post
    I am validating my webpages using W3C Mark Up Validating Service. I have a Marquee tag installed as follows:

    <div><font color="#000000" size="2"<marquee direction="left" width="100%" scrollamount="2"><strong><i>A tailored 'Webitry' website to promote your business.......</i></strong></marquee></font></div>

    The validator service indicates that I may not be using the correct DOCTYPE to support the Marquee tag!

    I am using DOCTYPE <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    Do I need to change the DOCTYPE?
    Hi Webiter,

    If your code works ok on major browser such IE7, 8 and Mozilla,
    then there is no need to change anything IMHO.

  4. #4
    Join Date
    Jul 2011
    Location
    Irish Republic
    Posts
    64
    Just checked it in Internet Explorer and no it is not working there?

  5. #5
    Join Date
    Aug 2011
    Posts
    22
    Found a bug in your code.

    <div><font color="#000000" size="2"<marquee direction="left" width="100&#37;" scrollamount="2"><strong><i>A tailored 'Webitry' website to promote your business.......</i></strong></marquee></font></div>

    Missing closing tag for font. Just fix it and it works.
    Last edited by ramin1360_2; 08-08-2011 at 11:12 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles