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
15 lines
730 B
Markdown
15 lines
730 B
Markdown
**English** · [Dansk](Lecture-3-Rendering-HTML-da) · [Bahasa Melayu](Lecture-3-Rendering-HTML-ms)
|
|
|
|
# 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; its `src` is a picture or GIF address and `width` sets the size.
|
|
- Use different quotation marks outside and inside, so the Python string and the HTML attribute do not end each other.
|