Announcing Dash Bio 1.0.0 🎉 : a one-stop-shop for bioinformatics and drug development visualizations.

Dash html.A tags within html.P tags

Hi,

I have been struggling to insert an html.A tag within an html.P tag, something like:
html.P('1. ', html.A(‘Behavior clusters’, href = ‘#’), 'of the associates within your team, along with historical ')
Can someone guide me please?

1 Like

If you pass multiple components as children of another component you must pass them as a list. For example.

html.P(
    [
        "1. ",
        html.A("Behavior clusters", href = "#"),
        " of the associates within your team, along with historical "
    ]
)
1 Like