Please help me unders XHTML 1.1

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Henry Stock

    #1

    Please help me unders XHTML 1.1

    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'.


  • Juan T. Llibre

    #2
    Re: Please help me unders XHTML 1.1

    Please post the source code which is resulting in those error messages.




    Juan T. Llibre, asp.net MVP
    asp.net faq : http://asp.net.do/faq/
    foros de asp.net, en español : http://asp.net.do/foros/
    =============== =============== ========
    "Henry Stock" <henry@henry-stock.comwrote in message news:ebld0C8$IH A.3648@TK2MSFTN GP02.phx.gbl...
    >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'.
    >
    >

    Comment

    • Henry Stock

      #3
      Re: Please help me unders XHTML 1.1

      Here it is:

      <form id="comments_fo rm" action="comment s.aspx" runat="server"
      onsubmit="retur n 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_N ame"/>

      <p></p>

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

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

      onblur="return isValidEmail(em ail, 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_C omments" rows="6"
      cols="60"></textarea>

      <p></p>

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

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

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



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

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

      </form>




      "Juan T. Llibre" <nomailreplies@ nowhere.comwrot e in message
      news:OOIwYI8$IH A.1180@TK2MSFTN GP04.phx.gbl...
      Please post the source code which is resulting in those error messages.
      >
      >
      >
      >
      Juan T. Llibre, asp.net MVP
      asp.net faq : http://asp.net.do/faq/
      foros de asp.net, en español : http://asp.net.do/foros/
      =============== =============== ========
      "Henry Stock" <henry@henry-stock.comwrote in message
      news:ebld0C8$IH A.3648@TK2MSFTN GP02.phx.gbl...
      >>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'.
      >>
      >>
      >
      >

      Comment

      Working...