Results 1 to 4 of 4

Thread: Issue with action within form and validation

  1. #1
    Join Date
    Sep 2005

    Issue with action within form and validation

    I have error validation:The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

    One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

    What is wrong if I set:
    <span class="mybox1"><form name="SearchInput" action="index.php">

  2. #2
    Join Date
    Mar 2010
    You've put a block level element inside an inline element. It's not allowed and that is why you get the error message.

  3. #3
    Join Date
    Dec 2003
    Bucharest, ROMANIA
    SPAN is an inline element. Use a DIV instead.

  4. #4
    Join Date
    Sep 2005
    yes, I have tested and works now.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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