Screenshots are captured in a Docker container with a headless browser. Task: MIL-004#1 Task: MIL-004#2 Task: MIL-004#3 Task: MIL-004#4 Task: MIL-004#5
730 B
730 B
English · Dansk · Bahasa Melayu
Lecture 3: Rendering HTML
Code: src/higher_lower/presentation/lectures/step_03_html.py.
What we gained
- A route can return HTML, not only a plain string.
- Inline CSS such as
style='text-align: center'styles one element. <img>is a self-closing tag; itssrcis a picture or GIF address andwidthsets the size.- Use different quotation marks outside and inside, so the Python string and the HTML attribute do not end each other.
