Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Adding reference link to part of h1

I’m trying to make a few words of an h1 header as a link, but can’t figure out how to do that. First I tried to embed the HTML but that didn’t work.

html.H1('Presented by <a href="">link to source</a>')

And then add the dash html.A within the header, but that also didn’t work

html.H1("Presented by" + html.A("link to souce", href=""))

Is there a way to do this?


Hi @thejbills and welcome to the Dash Community :slight_smile:

Here is one way to do this:

html.H1(dcc.Markdown("Presented by [link to source]("))

Thanks! I overlooked the Markdown option.