Files
055-higher-lower/docs/wiki/Lecture-3-Rendering-HTML.md
Tirsvad 1887fc347f Add lecture screenshots, README step overview and the three-language wiki
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
2026-11-06 12:42:20 +08:00

15 lines
730 B
Markdown

**English** · [Dansk](Lecture-3-Rendering-HTML-da) · [Bahasa Melayu](Lecture-3-Rendering-HTML-ms)
# Lecture 3: Rendering HTML
![A centred heading, a paragraph and two images](https://git.tirsystem.com/Tirsvad-Udemy-100-days-of-code/055-higher-lower/raw/branch/main/docs/screenshots/lecture-3-html.png)
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.