From b5018053bf8a8c3ca2bd9a89182536eb01c33292 Mon Sep 17 00:00:00 2001 From: Leon Xu <6479451-leonxu260@users.noreply.gitlab.com> Date: Thu, 29 Jul 2021 14:15:02 -0700 Subject: [PATCH] doc: update images section --- source/_posts/CSE154第一周回顾.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/_posts/CSE154第一周回顾.md b/source/_posts/CSE154第一周回顾.md index ca2f716..f16d938 100644 --- a/source/_posts/CSE154第一周回顾.md +++ b/source/_posts/CSE154第一周回顾.md @@ -219,4 +219,14 @@ HTML的全称是Hyper Text Markup Language(超文本标记语言) ``` - 绝对路径:指文件的特定位置,包括域和协议。 - 通常用于指向在线发布的链接(不在你自己的网站内)。 - - 一个例子:"https://validator.w3.org" \ No newline at end of file + - 一个例子:"https://validator.w3.org" + +## 图像:标签 +- 将图形图像插入页面(内联) +- src属性指定图像的链接 +- alt属性为屏幕阅读器提供文本,或者如果img不显示的话 + - HTML5所需的 +- 如果将img放在a标签中,它就变成了一个可点击的链接 + ```html + A Koala with a leaf + ``` \ No newline at end of file