Html学习:第二讲

HTML属性

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
<a href="https://jask.cc">我的网站</a>

<br>

<a href="https://jask.cc" target="_blank">我的网站打开在 new tab</a>

<hr>

<img src="logo.png" alt="logo">

<img src="https://jask.cc/assets/avatar.jpg" alt="logo">

区块

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<div class="nav"

<a href="#">链接 1</a>

<a href="#">链接 2</a>

<a href="#">链接 3</a>

<a href="#">链接 4</a>

<a href="#">链接 5</a>

</div>

<div class="content">

<h1>文章标题</h1>

<p>你是谁?</p>

<p>你是谁?</p>

<p>你是谁?</p>

<p>你是谁?</p>

<p>你是谁?</p>

<p>你是谁?</p>

</div>

  

<span>这是一个span 标签</span>

  

<span>链接点击这里<a href="#">链接</a></span>

表单

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<form>

<span>用户名:</span>

<input type="text" placeholder="请输入内容"><br>

<span>密码:</span>

<input type="text" value="请输入内容"><hr>

  
  

<label for="username">用户名:</label>

<input type="text" placeholder="请输入用户名"><br>

<label for="pwd">密码:</label>

<input type="password" id="pwd" placeholder="请输入密码"><hr><br>

<label>性别</label>

<input type="radio" name="gender">
<input type="radio" name="gender">
<input type="radio" name="gender">其他<br>

  

<label>爱好:</label>

<input type="checkbox" name="hobby">唱歌

<input type="checkbox" name="hobby">跳舞

<input type="checkbox" name="hobby">RAP

<input type="checkbox" name="hobby">篮球<br><br>

  

<input type="submit" value="上传">

  
  
  

</form>

<form action="#"></form>
Licensed under CC BY-NC-SA 4.0
使用 Hugo 构建
主题 StackJimmy 设计