code: def _handle_tag(self, tag, attrs, self_closing):
          
  
          if tag.lower() == 'img':
              attrs = self._image_attrs(attrs)
  
          # Remap the attributes
          out_attrs = []
          for key, val in attrs:
              if (key.lower() == 'href'
                      or (key.lower() == 'src' and not tag.lower() == 'img')):
                  out_attrs.append((key, links.resolve(
                      val, self._search_path, self._config.get('absolute'))))
              else:
                  out_attrs.append((key, val))
  
          self.append(
              utils.make_tag(
                  tag,
                  out_attrs,
                  self_closing))
docs: Handle a tag.
  
          attrs -- the attributes of the tag
          self_closing -- whether this is self-closing