Help - Search - Members - Calendar
Full Version: Validation Of Dis Code!
Zymic Webmaster Forums > Web Design & Development > Client Side Scripting > HTML and CSS
Luke
I can't fix these few errors I'm getting during validation without messing up the content...

If you don't have it bookmarked - http://validator.w3.org/check

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>

<title></title>

<link rel="stylesheet" type="text/css" href="style.css"/>

</head>
<body>

<!-- OPEN CONTAINER -->
<div id="container">
<!-- OPEN BODY WRAP -->
    <div id="body_wrap">

        <div id="logo"><a href="#" style="border: none;"><img src="images/logo.gif" height="59px" width="277px"
        alt="Site.com"/></a></div>

        <div id="left_body"></div>

        <div id="content_body">

        <div class="content">

            <p class="login"><a href="#login">Login</a> | <a href="#join">Not Registered</a>?</p>

            <p class="search">

                    Search:<br/>
                    
                    <span>
                    
                        <form action="#go" method="post">
                    
                            <input name="searchfield" type="text" class="search_form"/>
                    
                            <input name="go" type="submit" value="" class="go_form"/>
                    
                        </form>
                    
                    </span>
                
            </p>
            
            <p class="banner"></p>
            
            <p class="ad">AD SPACE</p>
            
            <p class="nav"><a href="#">About</a> | <a href="#">Terms</a> | <a href="#">Help</a> |
            <a href="#">Contact</a></p>
            
            <p  class="footer">© Copyright 2008 Site.com</p>
            
        </div>

        </div>

        <div id="right_body"></div>

        <div id="car"></div>

    </div>
<!-- CLOSE BODY WRAP -->

</div>
<!-- CLOSE CONTAINER -->

</body>

</html>


I'm not all that great at coding... so any organization tips/suggestions/etc. would be very appreciated.

Thanks,
prixat
Hi Luke

This should have minimal effect on the content...


<p class="search"> change this to a <div class="search">

Search:<br/>

<span>remove this

<form action="#go" method="post">

<div> put the input statements in there own div
<input name="searchfield" type="text" class="search_form"/>
<input name="go" type="submit" value="" class="go_form"/>
</div>

</form>

</span>remove this

</p> change this to close </div>
Luke
That did it! Thank you very much!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.