import mimetypes


def is_html(path: str) -> bool:
    """
    Determine whether a file is an HTML file or not.

    :param path: the path to the file

    :return: True or False
    """
    (mime_type, _) = mimetypes.guess_type(path)
    return mime_type in ('application/xhtml+xml', 'text/html')