class_docstr: Internal class for formatting output data in html.
  This class is intended for shared functionality between
  DataFrame.to_html() and DataFrame._repr_html_().
  Any logic in common with other output formatting methods
  should ideally be inherited from classes in format.py
  and this class responsible for only producing html markup.
class_docstr_tok: ["Internal","class","for","formatting","output","data","in","html",".","This","class","is","intended","for","shared","functionality","between","DataFrame.to_html","(",")","and","DataFrame._repr_html_","(",")",".","Any","logic","in","common","with","other","output","formatting","methods","should","ideally","be","inherited","from","classes","in","format.py","and","this","class","responsible","for","only","producing","html","markup","."]
code: def __init__(self, formatter, classes=None, border=None):
      self.fmt = formatter
      self.classes = classes
  
      self.frame = self.fmt.frame
      self.columns = self.fmt.tr_frame.columns
      self.elements = []
      self.bold_rows = self.fmt.kwds.get("bold_rows", False)
      self.escape = self.fmt.kwds.get("escape", True)
      self.show_dimensions = self.fmt.show_dimensions
      if border is None:
          border = get_option("display.html.border")
      self.border = border
      self.table_id = self.fmt.table_id
      self.render_links = self.fmt.render_links
  
imports: from __future__ import print_function
  from textwrap import dedent
  from pandas.compat import OrderedDict, lzip, map, range, u, unichr, zip
  from pandas.core.dtypes.generic import ABCMultiIndex
  from pandas import compat
  import pandas.core.common
  from pandas.core.config import get_option
  from pandas.io.common import _is_url
  from pandas.io.formats.format import TableFormatter, get_level_lengths
  from pandas.io.formats.printing import pprint_thing
label_desc: Use image node_id 1 to create a new HTMLFormatter object from inherited base classes: TableFormatter with example: obj = HTMLFormatter(formatter, classes, border)