示例工程 02-document-structure
02-document-structure/app/README.md
点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。
# 02-document-structure / app
展示 doctype、html、head、body 四层结构,以及 head 与 body 的分工。
## 运行
```bash
cd tutorials/html
python3 -m http.server 8080
# 打开 http://127.0.0.1:8080/examples/02-document-structure/app/
```
## 观察
- View Source 能看到四层结构
- DevTools 的 Elements 里是解析后的 DOM
- head 的内容不直接显示