Dash поместите тег в тег .Html

Программисты Html
Anonymous
Dash поместите тег в тег .

Сообщение Anonymous »

С помощью Dash я знаю, как разместить теги в разделе . Теперь я хочу разместить там теги . Как это сделать?

Код: Выделить всё

#!/usr/bin/env python
# -*- coding: utf-8 -*-

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)

Вот что я получаю:
Изображение


Подробнее здесь: https://stackoverflow.com/questions/798 ... l-head-tag

Вернуться в «Html»