Created seperate SelfClosingTag and OneLineTag classes.