Anonymous
Platzieren Sie ein -Tag im HTML--Tag
Post
by Anonymous » 02 Jan 2026, 17:36
Mit Dash weiß ich, wie man -Tags im Abschnitt platziert. Jetzt möchte ich dort -Tags platzieren. Wie geht's?
Code: Select all
from dash import Dash, html
app = Dash(
__name__,
meta_tags= [
dict(name = 'description', content = 'Description of the site'),
{'http-equiv':'content-language', 'content':'pt-br'},
{'http-equiv':'Link', 'content':""";rel="canonical\""""},
]
)
app.layout = [
html.Header(
html.Link(href='https://example.com',rel='canonical')
),
html.P('Some text')
]
if __name__ == '__main__':
app.run(debug=True)
Das bekomme ich:
1767371771
Anonymous
Mit Dash weiß ich, wie man -Tags im Abschnitt platziert. Jetzt möchte ich dort -Tags platzieren. Wie geht's? [code]from dash import Dash, html app = Dash( __name__, meta_tags= [ dict(name = 'description', content = 'Description of the site'), {'http-equiv':'content-language', 'content':'pt-br'}, {'http-equiv':'Link', 'content':""";rel="canonical\""""}, ] ) app.layout = [ html.Header( html.Link(href='https://example.com',rel='canonical') ), html.P('Some text') ] if __name__ == '__main__': app.run(debug=True) [/code] Das bekomme ich: [img]https://i.sstatic.net/IzCYTeWk.png[/img]