Html components span element

I recommend formatting the text with dcc.Markdown instead. Otherwise you’ll have to do it with children:

html.Div([
    'Lorem ipsum ',
    html.Span(' dolor ', style={'color': 'blue'}),
    ' sit amet'
])