Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jan 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    W3C validation problem

    Hi!

    This is question from a CSS newbie! My page (http://www.euanmorton.com/searcheuanmorton.com.htm) won't validate because <input> is not allowed within <table>.

    Any tips on how to fix this ?

    I've tried to get rid of the table and to use CSS instead, but as I have never done this before and haven't got a clue how to do it properly the only result I got is this:

    http://www.euanmorton.com/searchtest.htm

    It's valid..., but the positioning is quite far from the original page !!

    Any help would be much appreciated.

    Thanks !

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Valid alright

    Excuse me?

    http://validator.w3.org/check?uri=ht...morton.com.htm

    Apart from the fact that the page in question is riddled with less favourable markup choices, it seems to validate just fine.
    And yes, CSS is the preferred way to style your pages (including forms) over layout tables. If you would like to see a CSS style form example, take a look here: not a table in sight! (You'll need to scroll down in the source a bit to this part: <h2>A form with style</h2>, after which the form's markup will follow).
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #3
    New Coder
    Join Date
    Jan 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,

    I finally found the problem and fixed it, which is why the page is now valid. It took me 2 days to realize that <input> was wrongly placed between </tr> and <tr> !!

    Thanks for the link to the tableless form.

  • #4
    New Coder
    Join Date
    Jan 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by ronaldb66 View Post
    the page in question is riddled with less favourable markup choices
    As a newbie I would greatly appreciate more detailed comments on those less favourable choices !


  • #5
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,695
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    Everything that’s not semantic (i.e. doesn’t make any sense in a given context) is not favorable, one of those things being tables to create a page layout.


  •  

    Posting Permissions

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