[//]: # (title: toHtml) ## HTML rendering `DataFrame` instances can be rendered to HTML. Rendering of hierarchical tables in HTML is supported by JS and CSS definitions that can be found in project resources. Dataframes can also be formatted before being converted to HTML. See [](format.md) for how to do this. Besides that, DataFrame provides multiple APIs to customize HTML output. ### Display images Values of the `org.jetbrains.kotlinx.dataframe.datatypes.IMG` class are rendered as an `` tag ```kotlin val htmlData = dataFrameOf( "kotlinLogo" to columnOf( IMG("https://kotlin.github.io/dataframe/images/kotlin-logo.svg"), ), ).toStandaloneHtml() ``` ### Embed pages Values of the `org.jetbrains.kotlinx.dataframe.datatypes.IFRAME` class are rendered as an `