[1] describes the initial elements of HTML. Almost all were derived from an inofficial SGML folklore tagset with the notable exception of <a> and http URIs.
Not for 13ish years but we built the chat feature in a social networking platform with BOSH. Looked just like FB Messenger, really. The thing never took off, so I don't remember any talks about outside federation, I think it was not on by default.