-
Notifications
You must be signed in to change notification settings - Fork 0
/
inline_text_elements.py
68 lines (65 loc) · 1.34 KB
/
inline_text_elements.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
from fasthtml.common import *
app, rt = fast_app()
@rt('/')
def get():
return Div(
H1('Inline Text Elements'),
P(
'This is an abbreviation:',
Abbr('HTML', title='Hypertext Markup Language')
),
P(
'This is bold text using',
Strong('strong'),
'and',
B('b'),
'tags'
),
P(
'This is italic text using',
I('i'),
',',
Em('em'),
', and',
Cite('cite'),
'tags'
),
P(
'This is',
Del('deleted text')
),
P(
'This is',
Ins('inserted text')
),
P(
'To save your document, press',
Kbd('Ctrl + S')
),
P(
'This is',
Mark('highlighted text')
),
P(
'This is',
S('strikethrough text')
),
P(
'This is',
Small('small text')
),
P(
'This is text with a subscript: H',
Sub('2'),
'O'
),
P(
'This is text with a superscript: E = mc',
Sup('2')
),
P(
'This is',
U('underlined text')
)
)
serve()