dealt with deprecated type attribute for ul, ol and li, and value attribute for li (dedeprecated in HTML5)