Bill Johnson
Bill Johnson

Reputation: 303

Contact Form not Validating

Anyone shed any light on why the following:

<form id="" method="post" action="" />
                    <input type="text" name="" title="" tabindex="10" class="" />
                    <input type="password" name="" title="" tabindex="20" class="password" />
                    <input type="submit" name="submit" class="submit" value="" />
                </form>

Gets this error form W3C:

Line 101, Column 11: end tag for element "form" which is not open

                </form>

When I leave the end tag of each line as '>' as opposed to '/>' I get further issues. Can some assist me in re-dong this form so that it validates.

Thanks

Upvotes: 1

Views: 134

Answers (2)

Dai
Dai

Reputation: 1510

Your opening form tag ends with /> Closing itself.

Change it to

<form id="client_login_form" method="post" action="">

Upvotes: 1

rik
rik

Reputation: 8612

Remove the slash at the end of <form id="client_login_form" method="post" action="" />. That closes the tag immediately like in <br />.

Upvotes: 3

Related Questions