parsing html, get tag type, name andattributes