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 "
    ]
)
3 Likes