code: def isOpeningTag(self):
          
          if self.isTag() and \
             not self.isComment() and \
             not self.isEndTag() and \
             not self.isNonPairTag():
              return True
  
          return False
docs: Detect whether this tag is opening or not.
  
          Returns:
              bool: True if it is opening.