none
Transitional tag RRS feed

  • Question

  • In XHTML 1.0 Transitional the tag <ul> cannot contain a tag <a>.
    Monday, May 7, 2012 2:33 AM

All replies

  • Thank you for sharing.

    Or are we to infer that there is a question implied in your post?

    Is it that you can't put a link in an unordered list? You can, but it must be in a list item.


    Titanic, the movie, as CSS:

    @mixin iceberg {
         float: none;
    }

    #titanic {
         @include iceberg;
    }

    Monday, May 7, 2012 3:00 AM
  • You are missing the list element:

    <ul>
    <li><a>#</a></li>
    </ul>

    A list is not a legal container for anything other than a list element.


    Free Expression Web Tutorials
    For an Expression Web forum with without the posting issues try expressionwebforum.com

    Monday, May 7, 2012 3:14 AM
  • And, just to pile on, <ul> can't contain an <a> tag in HTML 4.01 Transitional, in HTML 4.01, in XHTML 1.0 Strict, in HTML 5 ....

    It's not the doctype, it's basic HTML.   As already mentioned, a list tag contains list items.  Feel free to put links inside the list items.  :)

    Monday, May 7, 2012 4:07 AM