Not sure if this is relevant now but in databricks you cannot add colors when the language is MD. However if the cell is scala/python, html is displaying properly.

displayHTML("""
<p><h2>Load Files:</h2></p>
<p>This method provides a generic functionality to load files into a dataframe. This takes some mandatory parameters like format of the file, path of the file and some optional parameters dependent upon each file type and returns a dataframe. </p>
<p style='color:red'><b>Note:</b></p>
<p>This method may not cover all the edge cases and cant be used for each and every file type. This is just a wrapper function to cover basic file formats like CSV, Json and Parquet files. </p>
<p style='color:green'>This is how you can use can use this method
<pre><code>
val csvOptions = Map("header" -> "true", "delimiter" -> ",")
val csvSource = DataSource("/path/to/file.csv", "csv", csvOptions)
val df = loadDataSource(spark, csvSource)
</code></pre> </p>
""")
</font>instead of</span>e.g.,This is <font color='red'> red </font>.but still I can't change the text background color. I checked some workaround1, workaround1. workaround3.This is <font color='red'> red </font>does not work for me. I do not think this is supported in Databricks, but I cannot find any official documentation stating it.