jQuery.fn.showTagInfo = function(){
var tags = this.map( function(){
return this.tagName + ( this.id ? "#" + this.id : "" );
$("body").append( "<br>" + tags.join("<br>") + "<br>" );
$("div:last-child").showTagInfo();
$("ul li:last-child").showTagInfo();
$("li.c:last-child").showTagInfo();