It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

can't validate

can't validate

Postby hgmmy06 on Thu Mar 15, 2007 9:36 pm

So in the process of building my page I'm trying to keep it valid in which I'm succeeding except for this one problem.

<form method="get" id="searchform" action="http://my-website.byethost18.com">
<div>
<input type="text" value="Search Website" name="s" id="searchtext" />
<div class="alignright">
<input type="submit" value="Search" id="searchsubmit" />
</div>
</div
</form>


When I that form in my page and try to validate using w3c's validation page it gives me an error saying,

1. Error Line 18 column 0: unclosed end-tag requires SHORTTAG YES.

</form>


I can't figure out what the problem is. does anyone else know?


Here's the proper setup to put in the w3c's validator.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>

<head>
<title>a title</title>
</head>


<body>
<form method="get" id="searchform" action="http://my-websight.byethost18.com">
<div>
<input type="text" value="Search Website" name="s" id="searchtext" />
<div class="alignright">
<input type="submit" value="Search" id="searchsubmit" />
</div>
</div
</form>
</body>

</html>
hgmmy06
 
Posts: 34
Joined: Thu Mar 15, 2007 9:14 pm

Postby mwa103 on Fri Mar 16, 2007 12:27 am

The div end tag before your </form> tag is not closed. You have </div it should be </div>.

-Mike
mwa103
100+ Club
 
Posts: 206
Joined: Mon Mar 07, 2005 10:55 pm

Postby hgmmy06 on Mon Mar 19, 2007 11:02 pm

duhh, guess I missed because I had been looking at it to long. Thanks for the help.
hgmmy06
 
Posts: 34
Joined: Thu Mar 15, 2007 9:14 pm

Postby narian on Mon Mar 19, 2007 11:51 pm

lol that thing happens from time to time, you just have to go word for word and character by character, its one of the hard parts of html.
narian
 
Posts: 21
Joined: Sat Mar 17, 2007 10:37 pm


Who is online

Users browsing this forum: No registered users and 7 guests