Hypervalent iodine mediated synthesis of 1-aryl/hetryl-1,2,4-triazolo[4,3-a] pyridines and 1-aryl/hetryl 5-methyl-1,2,4-triazolo[4,3-a]quinolines as antibacterial agents.