update html close tag