in reply to Re: PerlMonks has changed me
in thread PerlMonks has changed me

editing raw HTML - from writing nodes :)
Mmh. But you still forget to close your <li>-tags ;-)


holli, /regexed monk/

Replies are listed 'Best First'.
Re^3: PerlMonks has changed me
by GrandFather (Saint) on Aug 31, 2005 at 09:51 UTC

    Rats. I used <li/> tags, but they got changed to unclosed <li> tags. Obviously can't use that trick. Ah well, there's something else I learned from PM :)


    Perl is Huffman encoded by design.
Re^3: PerlMonks has changed me
by ambrus (Abbot) on Aug 31, 2005 at 10:25 UTC
      The closing li tags were optional in HTML, up through middle-to-late 1990s. This is no longer true for any even remotely recent version of HTML. The last several versions of HTML are XML document types, so all tags must be closed. Don't live in 1998: close your tags.
        The closing li tags were optional in HTML, up through middle-to-late 1990s. This is no longer true for any even remotely recent version of HTML. The last several versions of HTML are XML document types, so all tags must be closed.
        That is not correct. HTML and XHTML are not the same, and every version of HTML is an application of SGML. HTML thus allows for markup minimization when the corresponding document-type definition (DTD) says so, and all of the HTML DTDs – going back to the original version – define the LI element's end tag to be optional.

        As long as Perl Monks is served up in HTML, it will be perfectly acceptable to omit any tags the corresponding DTD says are optional.

        The W3C's HTML and XHTML Frequently Answered Questions addresses the underlying issues in detail.

        Cheers,
        Tom

        That still doesn't make "<li />" tags acceptable. Quite the contrary: everything should be inside the "li" element, thus, between the "<li>" and the corresponding "</li>" tags.
        What does this have to do with Perlmonks, which is HTML4?