www.webdeveloper.com
Results 1 to 4 of 4

Thread: Validating youTube videos?

  1. #1
    Join Date
    Aug 2005
    Posts
    45

    Validating youTube videos?

    Is there anyway I can get embedded youTube videos to validate? I have tried a number of things and I get different errors.


    there is no attribute "src"


    Code:
    <object width="556" height="366"data="http://www.youtube.com/v/grLQoU_G-C4&amp;hl=en_GB&amp;fs=1&amp;rel=0&amp;hd=1">
    <param name="movie"value="http://www.youtube.com/v/grLQoU_G-C4&amp;hl=en_GB&amp;fs=1&amp;rel=0&amp;hd=1" />
    <param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed src="http://www.youtube.com/v/54b9I-g5uG0&amp;hl=en_GB&amp;fs=1&rel=0&hd=1"type="application/x-shockwave-flash"allowscriptaccess="always"allowfullscreen="true"width="556" height="366" /></object>

    end tag for "param" omitted, but OMITTAG NO was specified

    Code:
    <object type="application/x-shockwave-flash" data="http://www.youtube.com/v/grLQoU_G-C4" width="556" height="366"><param name="movie" value="http://www.youtube.com/v/grLQoU_G-C4"><param na
    me="FlashVars" value="playerMode=embedded"><param name="wmode" value="transparent"></object>
    When I have put an end tag on it breaks.
    www.emma-designs.co.uk

  2. #2
    Join Date
    Jan 2004
    Location
    chertsey, a small town s.w. of london, england.
    Posts
    1,460
    Hi there Fashy,

    this validates...
    Code:
    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en">
    <head>
    
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="language" content="english"> 
    <meta http-equiv="Content-Style-Type" content="text/css">
    
    <title>untitled document</title>
    
    </head>
    <body>
    
    <div>
     <object type="application/x-shockwave-flash" data="http://www.youtube.com/v/grLQoU_G-C4" width="556" height="366">
      <param name="movie" value="http://www.youtube.com/v/grLQoU_G-C4">
      <param name="allowFullScreen" value="true">
      <param name="flashVars" value="hl=en_GB&amp;fs=1&amp;rel=0&amp;hd=1">
      <param name="allowscriptaccess" value="always">
    </object>
    </div>
    
    </body>
    </html>
    
    coothead

  3. #3
    Join Date
    Feb 2008
    Location
    NW Washington State
    Posts
    1,856
    And notice that this validates only as HTML 4.01
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
    but will not validate as XHTML
    So be sure your DOCTYPE is correct
    Thanks coothead!
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com

  4. #4
    Join Date
    Jan 2004
    Location
    chertsey, a small town s.w. of london, england.
    Posts
    1,460
    Hi there Eye for Video,
    And notice that this validates only as HTML 4.01
    It will also validate with XHTML or HTML5.
    Code:
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Language" content="en" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    
    <title>untitled document</title>
    
    </head>
    <body>
    
    <div>
     <object type="application/x-shockwave-flash" data="http://www.youtube.com/v/grLQoU_G-C4" width="556" height="366">
      <param name="movie" value="http://www.youtube.com/v/grLQoU_G-C4"/>
      <param name="allowFullScreen" value="true"/>
      <param name="flashVars" value="hl=en_GB&amp;fs=1&amp;rel=0&amp;hd=1"/>
      <param name="allowscriptaccess" value="always"/>
    </object>
    </div>
    
    </body>
    </html>
    
    If you're serving XHTMLt as "text/html" then it is, for all practical purposes, HTML, not XHTML.
    Not pretending the document is XHTML and instead using HTML4.01 makes the document smaller,
    with no ill effects at all.

    Further reading:-
    1. Frequently Asked Questions About XHTML vs HTML
    2. Beware of XHTML
    3. XHMTL Beginners

    coothead

Thread Information

Users Browsing this Thread

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

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