doc: update images section

This commit is contained in:
Leon Xu committed 2021-07-29 14:15:02 -07:00
1 parent 374ff6f56b
commit 9b16e807a9
1 file changed
+11 -1
+11 -1
View File
@@ -219,4 +219,14 @@ HTML的全称是Hyper Text Markup Language(超文本标记语言)
```
- 绝对路径:指文件的特定位置,包括域和协议。
- 通常用于指向在线发布的链接(不在你自己的网站内)。
- 一个例子:"https://validator.w3.org"
- 一个例子:"https://validator.w3.org"
## 图像:<img>标签
- 将图形图像插入页面(内联)
- src属性指定图像的链接
- alt属性为屏幕阅读器提供文本,或者如果img不显示的话
- HTML5所需的
- 如果将img放在a标签中,它就变成了一个可点击的链接
```html
<img src="img/koala with leaf.png" alt="A Koala with a leaf" title="Logo">
```