dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: xhtml validation object issues

  1. #1
    Join Date
    Feb 2005
    Location
    CT, USA
    Posts
    112

    xhtml validation object issues

    I am designing a site for a friend, but I cannot get the validation to go through.
    Here's my code:
    HTML Code:
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://w3c.org.TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    	<head>
    		<title>The Brown Ring of Fury</title>
    		<meta name="author" content="Josh McDonald" />
    		<meta name="generator" content="notepad" />
    		<meta name="keywords" content="Greg Richter" />
    		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
    		<meta http-equiv="Content-Script-Type" content="text/javascript" />
    		<meta http-equiv="Content-Style-Type" content="text/css" />
    <link rel="shortcut icon" href="http://www.mjmcdonaldfam.com/gregs_stuff/dna.ico" />
    <link rel="stylesheet" href="style.css" />
      </head>
    <body>
    
    <div id="header">
    
     <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="350" height="76" id="dna" align="middle">
    	<param name="allowScriptAccess" value="sameDomain" />
    	<param name="movie" value="dna.swf" />
    	<param name="quality" value="best" />
    	<param name="bgcolor" value="#fff" />
    	<embed src="dna.swf" bgcolor="#fff" width="350" height="76" id="dna" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    	</object>
    
    </div>
    <div id="cnt">
    <div id="mainlinks">
    	<img src="willispure_logo.gif" alt="our will is pure" />
     <a href="" onmouseover="document.getElementById('home').src='home_press.gif'" onmouseout="document.getElementById('home').src='home.gif'"><img src="home.gif" border="0" id="home" alt="home" /></a>
    	<a href="apoc_affairs.htm" onmouseover="document.getElementById('aa').src='aa_press.gif'" onmouseout="document.getElementById('aa').src='aa.gif'"><img src="aa.gif" id="aa" alt="Apocalyptic Affairs" /></a>
    	<a href="rectal_health.htm" onmouseover="document.getElementById('drh').src='drh_press.gif'" onmouseout="document.getElementById('drh').src='drh.gif'"><img src="drh.gif" id="drh" alt="Rectal Health Department" /></a>
    	<a href="faq.htm" onmouseover="document.getElementById('faq').src='faq_press.gif'" onmouseout="document.getElementById('faq').src='faq.gif'"><img src="faq.gif" id="faq" alt="FAQ" /></a>
    	<a href="movies.htm" onmouseover="document.getElementById('myoovies').src='myoovies_press.gif'" onmouseout="document.getElementById('myoovies').src='myoovies.gif'"><img src="myoovies.gif" id="myoovies" alt="Movie reviews" /></a>
    	<a href="comments.htm" onmouseover="document.getElementById('comments').src='comments_press.gif'" onmouseout="document.getElementById('comments').src='comments.gif'"><img src="comments.gif" id="comments" alt="Comments" /></a>
    	<a href="bio.htm" onmouseover="document.getElementById('bio').src='bio_press.gif'" onmouseout="document.getElementById('bio').src='bio.gif'"><img src="bio.gif" id="bio" alt="Staff Bio" /></a>
    </div>
    
    <div id="main">
      <!-- Your home page header will go here, between the <h2> and </h2> tags -->
      <h2></h2>
      <!-- End home page header -->
      
      <!-- Home page content will go here between the <p class="main"> and </p> tags -->
      <!-- A line can be broken and forced down by adding this tag befor it "<br />"; omit the quotes -->
      	<p class="main">
      </p>
      <!-- End home page content -->
    
    </div>
    </div>
    
    
    <div id="footer">
    	<ul>
    		<li><a href="">Home</a></li>
    		<li><a href="apoc_affairs.htm">Apocalyptic Affairs</a></li>
    		<li><a href="rectal_health.htm">Department of Rectal Health</a></li>
    		<li><a href="faq.htm">FAQ</a></li>
    		<li><a href="movies.htm">Myoovies</a></li>
    		<li><a href="comments.htm">Comments</a></li>
    		<li><a href="bio.htm">Bio</a></li>
    		<li><a href="">Copyright &copy; Gregory J. Richter 2005</a></li>
    		<li><a href="">Site design by Joshua McDonald</a></li>
    	</ul>
    </div>
    
    </body>
    </html>

    and here is the validation page:
    HTML Code:
     Below are the results of attempting to parse this document with an SGML parser.
    
       1.
    
          Line 24, column 12: there is no attribute "src"
    
          <embed src="dna.swf" bgcolor="#fff" width="350" height="76" id="dna" allowScrip
    
          You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
    
          This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
    
          How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.
    
          ✉
       2.
    
          Line 24, column 30: there is no attribute "bgcolor"
    
          <embed src="dna.swf" bgcolor="#fff" width="350" height="76" id="dna" allowScrip
    
          ✉
       3.
    
          Line 24, column 43: there is no attribute "width"
    
          ...d src="dna.swf" bgcolor="#fff" width="350" height="76" id="dna" allowScriptAc
    
          ✉
       4.
    
          Line 24, column 56: there is no attribute "height"
    
          ...f" bgcolor="#fff" width="350" height="76" id="dna" allowScriptAccess="sameDom
    
          ✉
       5.
    
          Line 24, column 64: there is no attribute "id"
    
          ...or="#fff" width="350" height="76" id="dna" allowScriptAccess="sameDomain" typ
    
          ✉
       6.
    
          Line 24, column 88: there is no attribute "allowScriptAccess"
    
          ...ight="76" id="dna" allowScriptAccess="sameDomain" type="application/x-shockwa
    
          ✉
       7.
    
          Line 24, column 106: there is no attribute "type"
    
          ... allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginsp
    
          ✉
       8.
    
          Line 24, column 150: there is no attribute "pluginspage"
    
          ...ation/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashpl
    
          ✉
       9.
    
          Line 24, column 197: element "embed" undefined
    
          ...w.macromedia.com/go/getflashplayer" />
    
          You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element), or by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).

  2. #2
    Join Date
    Jul 2005
    Posts
    6
    It looks like all of your errors are coming from the embed line. embed is not supported in xhtml, so it will never validate.

    Maybe this article will help.
    http://www.alistapart.com/articles/flashsatay/

  3. #3
    Join Date
    Feb 2005
    Location
    CT, USA
    Posts
    112
    Thanks a lot! That article really helped. I got everything working and validated!
    I appreciate it.

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