class_docstr: Base class for HTML-based annotations.
  
  .. note::
      All annotations that inherit from this base class can be attached to
      a canvas, but are not rendered to it, thus they won't appear in saved
      plots. Only ``export_png()`` function can preserve HTML annotations.
class_docstr_tok: ["Base","class","for","HTML-based","annotations",".","..","note",":",":","All","annotations","that","inherit","from","this","base","class","can","be","attached","to","a","canvas",",","but","are","not","rendered","to","it",",","thus","they","wo","n't","appear","in","saved","plots",".","Only","``","export_png","(",")","``","function","can","preserve","HTML","annotations","."]
code: def __init__(self, *args, **kwargs) -> None:
      super().__init__(*args, **kwargs)
  
imports: from __future__ import annotations
  import logging
  from ....core.has_props import abstract
  from ..annotation import Annotation
label_desc: Use image node_id 1 to create a new HTMLAnnotation object from inherited base classes: Annotation with example: obj = HTMLAnnotation()