doc: update link section

This commit is contained in:
Leon Xu committed 2021-07-29 13:49:52 -07:00
1 parent 80c3dbf478
commit 00f0bac027
1 file changed
+2 -2
+2 -2
View File
@@ -196,10 +196,10 @@ HTML的全称是Hyper Text Markup Language(超文本标记语言)
- 注释不能嵌套,也不能包含a--
## 链接 <a>
- 链接,或<a>,到其他页面(内联)
- 链接,或a,到其他页面(内联)
- 使用href(超文本引用)属性指定目标URL
- 可以是绝对的链接(对另一个网站)或相对的(对本网站的另一个页面)
- <a>是内联元素;必须放置在一个块元素,如<p>或<h1>
- a标签是内联元素;必须放置在一个块元素,如<p>或<h1>
```html
<p>
Search for it on <a href="http://www.google.com">Google</a>