Please help me unders XHTML 1.1

H

Henry Stock

I can understand what these error messages are telling me, but I guess I am
not sure how to address them all.

The bold tag could be handled in a class attribute, but I need a <br/> tag
inside the form for formatting and the input fields are necessary for
getting data.



Error 3 Validation (XHTML 1.1): Element 'br' cannot be nested within element
'form'.
Error 7 Validation (XHTML 1.1): Element 'b' cannot be nested within element
'form'.
Error 9 Validation (XHTML 1.1): Element 'input' cannot be nested within
element 'form'.
 
H

Henry Stock

Here it is:

<form id="comments_form" action="comments.aspx" runat="server"
onsubmit="return jcap();" >

<p>If you would like to make a comment about the anything that you see on
our web site

or ask a question, then please feel free to use this comments form.</p>

<b>Your Name :</b><br/>

<input id="name" type="text" size="30" maxlength="256" name="Senders_Name"/>

<p></p>

<b>Your E-Mail Address :</b><br/>

<input id="email" type="text" size="30" maxlength="80" name="_reply"

onblur="return isValidEmail(email, true)"/>

<p></p>

<b>Your Phone Number:</b><br/>

<input id="phone"type="text" size="15" maxlength="15" name="Phone"/>

<p></p>

<b>Your Comments :</b><br/>

<textarea id="message" name="Senders_Comments" rows="6"
cols="60"></textarea>

<p></p>

<p>Please enter the word that you see in the image </p>

<p><script type="text/javascript">sjcap();</script></p>

<noscript><p>[This resource requires a Javascript enabled
browser.]</p></noscript>



<asp:button runat="server" id="contact_us" Text="Submit"
OnClick="contactUS_Click" />

<input type="reset" value="Reset"/>

</form>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top