code: def html_attributes(self):
          
          extra_attributes = ''
          if self.element_id is not None:
              extra_attributes = ' id="%s"' % self.element_id
          if self.style_class is not None:
              extra_attributes = '%s class="%s"' % (
                  extra_attributes, self.style_class)
          if self.attributes is not None:
              extra_attributes = '%s %s' % (extra_attributes, self.attributes)
          return extra_attributes
docs: Get extra html attributes such as id and class.