doc: add Links section

This commit is contained in:
Leon Xu committed 2021-07-29 13:47:02 -07:00
1 parent 062dfa44a3
commit 6422155feb
1 file changed
+12 -1
+12 -1
View File
@@ -192,4 +192,15 @@ HTML的全称是Hyper Text Markup Language(超文本标记语言)
```
- 许多网页没有被彻底注释(或根本没有注释)
- 在页面顶部和禁用代码仍然有用
- 注释不能嵌套,也不能包含a--
- 注释不能嵌套,也不能包含a--
## 链接 <a>
- 链接,或<a>,到其他页面(内联)
- 使用href(超文本引用)属性指定目标URL
- 可以是绝对的链接(对另一个网站)或相对的(对本网站的另一个页面)
- <a>是内联元素;必须放置在一个块元素,如<p>或<h1>
```html
<p>
Search for it on <a href="http://www.google.com">Google</a>
</p>
```