def get_previous_tag(cls, el):
        """Get previous sibling tag."""

        sibling = el.previous_sibling
        while not cls.is_tag(sibling) and sibling is not None:
            sibling = sibling.previous_sibling
        return sibling
Get previous sibling tag.