1 xhtml error

This is a discussion on "1 xhtml error" within the Web Page Design section. This forum, and the thread "1 xhtml error are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 15th, 2007, 19:16
New Member
Join Date: Jul 2007
Location: UK
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
1 xhtml error

please see link: http://validator.w3.org/check?uri=ht...doctype=Inline

..... how do i fix the problem?

thanks in advance,

chris
Reply With Quote

  #2 (permalink)  
Old Jul 15th, 2007, 19:44
Up'n'Coming Member
Join Date: Jul 2007
Location: France
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Re: 1 xhtml error

As you're doing XHTML 1.0 trans, you need to close the tags with a slash:

Quote:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="text-align:center; padding-bottom:10px;" /><input type
I've marked it in red.

You also may want to think about dumping transitional and going for a Strict Doctype: it'll help tighten up your coding.

Hope that helps.
Reply With Quote
  #3 (permalink)  
Old Jul 15th, 2007, 20:23
New Member
Join Date: Jul 2007
Location: UK
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: 1 xhtml error

Hi matelot

I’m totally new to web design/coding.

I never did any of the script. My co admin did. I'm just trying to make the homepage and forums validate as valid xhtml.

With help from vbulletin and vbseo i managed to come from 37 errors to just 7 of which the 7 my co admin will have to do because it’s messing about with classes/ids etc. I'm not brave enough to mess with them just yet.

The homepage wasn't passing on about 15 errors though and I’ve managed to bring them down to just 1. This one i couldn't figure out

As for switching from transitional to Strict Doctype I haven't the foggiest what you mean by that...

I added that slash though but the error is still there, as well as 2nd error now...

Thanks for your help matelot!
Reply With Quote
  #4 (permalink)  
Old Jul 15th, 2007, 21:38
Up'n'Coming Member
Join Date: Jun 2007
Location: Birmingham, UK
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Re: 1 xhtml error

Quote:
Originally Posted by matelot View Post
As you're doing XHTML 1.0 trans, you need to close the tags with a slash:
That is not right. The <form> element has a closing tag </form>. You only need to close tags with a slash which do not have closing tags, like
Code: Select all
<input type="hidden" name="cmd" value="_s-xclick" />
So that is not the original error.

Quote:
Originally Posted by Chris Powell View Post
I added that slash though but the error is still there, as well as 2nd error now...
Of course it is. So remove the slash again and the second error will dissapear.

As for the first error, it is caused by the <form> ... </form> being enclosed by a <p> ... </p>. It has to be the other way around.

Change your code to
Code: Select all
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="text-align:center; padding-bottom:10px;" />
<p style="text-align:center;">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" style="border:0" />
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1" />
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYArfM6Zh7QMGzI4rtm+C7G0MXyvkYgAIYPs6s+xbaI5S5MkFsFKdjPzQIy2QGM6eJuk5gmSQpUTC8neNUyZYVGFlGcoVyHzY2+as66CYJF+aKsq60eRFy3+IwWbAChRQebiGLIJcioYFeat2ZmvIT8nLRdLfy+c0kGGrj+dLbpQ/TELMAkGBSsOAwIaBQAwgcQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQI/V+2G6LT9ZWAgaDYvvAhg+B7risOcgBzDNJgyes0E5AVnZ+ClvEatKIXOrM/LeF2pYkd09M57EaYIa8y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2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDYxMTI4MTcxNzM0WjAjBgkqhkiG9w0BCQQxFgQUkNScIcGa1yeLwG4OdqLnKz0n6b4wDQYJKoZIhvcNAQEBBQAEgYCX7Og2BRAugvDyTY5ysm9juvWlFmZ1bnGBLbjbQb5y1viFXHYVwzmojrCyeVAJyzv8gb52dyLwVXWAKCY8HuPc5IyoQrvEvmk82Kj5njpcNYW6AymdkEmgSL5tJJnJov2faLcrj7svUgYchI0vnu1V7Jj4ByxR8qqdrwgRQw9P9w==-----END PKCS7-----" />
</p>
</form>
Hope this helps

Last edited by hschmitz; Jul 15th, 2007 at 21:41.
Reply With Quote
  #5 (permalink)  
Old Jul 15th, 2007, 22:17
New Member
Join Date: Jul 2007
Location: UK
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Cool Re: 1 xhtml error

Replacing that code and removing the slash didn't work, but after chaning code in a few of the other lines it validated.

Quote:
Originally Posted by hschmitz View Post

As for the first error, it is caused by the <form> ... </form> being enclosed by a <p> ... </p>. It has to be the other way around.
Thanks for that!

cheers guys
Reply With Quote
  #6 (permalink)  
Old Jul 16th, 2007, 08:39
Up'n'Coming Member
Join Date: Jul 2007
Location: France
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Re: 1 xhtml error

Quote:
Originally Posted by hschmitz View Post
That is not right. The <form> element has a closing tag </form>. You only need to close tags with a slash which do not have closing tags, like
Code: Select all
<input type="hidden" name="cmd" value="_s-xclick" />
So that is not the original error...
Quite correct. You spotted my deliberate mistake to see if you were paying attention.

Glad CP got it sorted.
Reply With Quote
Reply

Tags
xhtml

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strict XHTML validation error : "tabindex" newoptical Web Page Design 1 Aug 24th, 2007 16:21
Keep getting error message Microsoft VBScript runtime error '800a01a8' cpando1974 Classic ASP 2 Aug 7th, 2007 12:00
Error 500 - Internal server error JasonStanley PHP Forum 3 Apr 23rd, 2007 17:56
xhtml W3C error bean_2k1 Web Page Design 2 Oct 12th, 2005 20:55


All times are GMT. The time now is 08:59.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43