code: def attr(self, *args, **kwargs):
          
          kwargs.update({k: bool for k in args})
          for key, value in kwargs.items():
              if key == "klass":
                  self.attrs["klass"].update(value.split())
              elif key == "style":
                  if isinstance(value, str):
                      splitted = iter(re.split(";|:", value))
                      value = dict(zip(splitted, splitted))
                  self.attrs["style"].update(value)
              else:
                  self.attrs[key] = value
          self._stable = False
          return self
docs: Add an attribute to the element