SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Dec 2013
    Posts
    5
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    w3c validation error on swf need help

    Hi,I am coding a website using HTML5 using dreamweaver, but i have validate one of my page in w3c validater but i got an error on the swf (flash) which i just insert it. so i don't know to fix so and i am afrid it my effect the flash swf .. how to fix it ?
    Thank you
    these are the two errors :

    Line 66, Column 117: Element object is missing one or more of the following attributes: data, type.
    …6D-11cf-96B8-444553540000" width="610" height="400" id="FlashID" title="flash">
    Attributes for element object:
    Global attributes
    data
    type
    typemustmatch
    name
    usemap
    form
    width
    height


    Line 66, Column 117: The classid attribute on the object element is obsolete. Use the data and type attributes to invoke plugins. To set a parameter with the name classid, use the param element.
    …6D-11cf-96B8-444553540000" width="610" height="400" id="FlashID" title="flash">




    this my html code
    Code HTML4Strict:
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Home</title>
    <link href="style.css" rel="stylesheet" type="text/css">
    <link rel="icon" href="images/favicon.ico" type="image/x-icon">
    <meta name="description" content="summer tea frames trips">
    <meta name="keywords" content="Tea,farms,summer,tourist">
    <meta http-equiv="refresh" content="30">
    <style>
    .leftnav {
    	height:400px;
     
     
     
     
     
    }
    </style>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    </head>
     
    <body>
    <div class="container">
    <div id="header">
     
        <img src="images/logo.gif" alt="logo" width="178" height="150" id="logo">
       <div id='cssmenu' class="thumbnail">
         <ul>
       <li class='active'><a href='index.html'><span>Home</span></a></li>
       <li class='has-sub'><a href='#'><span>About</span></a>
          <ul>
             <li><a href='About.html'><span>About Us</span></a></li>
             <li class='last'><a href='contactuss.html'><span>Contact Us</span></a></li>
          </ul>
       </li>
       <li class='has-sub'><a href='#'><span>Tea</span></a>
          <ul>
             <li><a href='History.html'><span>History</span></a></li>
             <li><a href='ManifactureProcesss.html'><span>Manifacture Process</span></a></li>
     
          </ul>
       </li>
       <li class='has-sub'><a href='Gallery.html'><span>Gallery</span></a>
          <ul>
             <li><a href='TourToChina.html'><span>Trip To China</span></a></li>
             <li><a href="TourToCeylon.html"><span>Trip To Ceylon</span></a></li>
         <li class='last'><a href='TourToJapan.html'><span>Trip To Japan</span></a></li>
          </ul>
       </li>
       <li class='last'><a href="Contries.html"><span>Trip Time Line</span></a></li>
    </ul>
    </div>
     
     
     </div>
      <div class="leftnav">
     
     
     
      </div>
    <div class="content">
        <h1>welcome</h1>
        <p>&nbsp; </p>
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="610" height="400" id="FlashID" title="flash">
          <param name="movie" value="flashteaa.swf">
          <param name="quality" value="high">
          <param name="wmode" value="opaque">
          <param name="swfversion" value="6.0.65.0">
          <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
          <param name="expressinstall" value="Scripts/expressInstall.swf">
          <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
          <!--[if !IE]>-->
          <object type="application/x-shockwave-flash" data="flashteaa.swf" width="610" height="400">
            <!--<![endif]-->
            <param name="quality" value="high">
            <param name="wmode" value="opaque">
            <param name="swfversion" value="6.0.65.0">
            <param name="expressinstall" value="Scripts/expressInstall.swf">
            <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
            <div>
              <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
              <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
            </div>
            <!--[if !IE]>-->
          </object>
          <!--<![endif]-->
        </object>
    </div>
     
     
      <div id="footer">
        &copy;2013 Junny Teanny Tour.Last Update: 5 December,2013
      </div> 
     </div>
    <script type="text/javascript">
    swfobject.registerObject("FlashID");
    </script>
    </body>
    </html>
    Last edited by TechnoBear; Dec 8, 2013 at 10:25. Reason: Code tags added

  2. #2
    SitePoint Member
    Join Date
    Dec 2013
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    why you want w3 validation for your html? I never used it and still never saw any trouble on my website.

  3. #3
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,157
    Mentioned
    190 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by tanveerhabib View Post
    why you want w3 validation for your html? I never used it and still never saw any trouble on my website.
    It may be true that you never saw any problems. But if it's not valid there is an increased chance that others will.

    @karen2014 ; the error messages are referring to
    HTML Code:
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="610" height="400" id="FlashID" title="flash">
    the tag does not have either data or type
    the tag has classid which is obsolete

    I know it can be a bit of a pain keeping up with changes, and it's all too easy to find examples of old code online that were OK before or now only for certain doctypes.

    So you need to either change your object attributes or change the doctype. Probably easier and more forward looking to change the attributes IMHO

  4. #4
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,812
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    You currently have two object tags - the outer one is for the long dead IE6 browser and uses a proprietary classid attributer that will not pass validation. The inner object tag will work for IE7+ as well as all other modern browsers.

    As IE6 is long dead the simplest fix is to get rid of the outer object tag and the conditional comments (which only IE9 and earlier recognise).
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Bookmarks

Posting Permissions

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