minor changes

minor variable type changes,html5 tagname and length,styles att and tags separation,count text characters inside html