in reply to Re: Allowed HTML tags
in thread Allowed HTML tags

Definitely not "q", because "q" is a real html tag that's currently not allowed but only because the gods think it has poor browser support, so it might be reenabled again when everyone uses browsers that support even all the new HTML 5 tags.

Replies are listed 'Best First'.
Re^3: Allowed HTML tags
by JavaFan (Canon) on Nov 27, 2008 at 11:42 UTC
    Well, <code> is a real HTML tag as well, and that didn't stop perlmonks from turning it into something different.
      In this case, I'd say "improved it" rather than "turning it into something different."

      Seems that the w3c 4.01 spec effectively requires a preceding <pre> to achieve what The Monastery does with a simple <code>...</code> or <c>...</c>

      See w3c or http://www.htmlhelp.com/reference/html40/phrase/code.html.
        "improved" is a matter of opinion. You can't for instance use a line of code and highlight a section you want to focus because there's an implicit CDATA context inside.

        BTW, in HTML, PRE is a blocklevel element, while CODE is an inline element, so they aren't quite interchangable, nor can you not prepend every CODE element with PRE.

        IMO, it would have been better if Perlmonks just had C for code, and left the HTML CODE as is. But, IIRC, the C was introduced later as an alias for CODE.

        nice info