0%

Web前端

3小时前端入门教程(HTML+CSS+JS)_哔哩哔哩_bilibili

此部分只作为了解学习。不必深究。

HTML

文本标签
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
53
54
55
56
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>文本标签</title>
</head>
<body>
<h1>Test1</h1>
<h2>Test2</h2>
<h3>Test2</h3>
<h4>Test2</h4>
<h5>Test2</h5>
<h6>Test2</h6>
<p>This is a Test</p>
<p>
字体加粗:<b>加粗1</b><strong>加粗2</strong><i>斜体</i><u>下划线</u><s>删除键</s>
</p>
<ul>
<li>无序列表1</li>
<li>无序列表2</li>
<li>无序列表3</li>
</ul>
<ol>
<li>有序列表1</li>
<li>有序列表2</li>
<li>有序列表3</li>
</ol>

<table border="1">
<tr>
<th>列标题1</th>
<th>列标题2</th>
<th>列标题3</th>
<!-- th:table header -->
</tr>
<tr>
<td>One data</td>
<td>Two data</td>
<td>Three data</td>
<!-- td:table data -->
</tr>
<tr>
<td>One data</td>
<td>Two data</td>
<td>Three data</td>
</tr>
<tr>
<td>One data</td>
<td>Two data</td>
<td>Three data</td>
</tr>
<!-- tr:table row -->
</table>
</body>
</html>

HTML属性
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML 属性</title>
</head>
<body>
<a href="https://bakebakebakebake.github.io/">这是一个超链接</a>
<br>
<!-- 换行 -->
<a href="https://bakebakebakebake.github.io/" target="_blank">这是一个超链接</a>
<hr>
<!-- 一条线 -->
<img src="https://bakebakebakebake.github.io/images/Pasted%20image%2020240118184733.png" alt="decribption" width="800" height="300">
<hr>
<img src="" alt="404">
</body>
</html>

HTML区块
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML 区块</title>
</head>
<body>
<div class="nav">
<a href="#">Link1</a>
<a href="#">Link2</a>
<a href="#">Link3</a>
<a href="#">Link4</a>
</div>

<div class="content">
<h1>HEADING</h1>
<p>content</p>
<p>content</p>
<p>content</p>
<p>content</p>
</div>

<span>span tag1</span>
<span>span tag2</span>
<span>span tag3</span>
<span>span tag4</span>
<hr>
<span>One Link Click This <a href="#">Link</a></span>
</body>
</html>

HTML表单
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML 表单</title>
</head>
<body>
<form action="#">
<label>UserName</label>
<input type="text" placeholder="input UserName"><br><br>
<label for="pwd">PassWord</label>
<input type="password" id="pwd" placeholder="Input password"><br><br>

<label for="">Gender</label>
<input type="radio" name="Gender">Male
<input type="radio" name="Gender">Female
<input type="radio" name="Gender">Other
<br><br>
<label for="">Hobby</label>
<input type="checkbox" name="Hobby">Singing
<input type="checkbox" name="Hobby">Dancing
<input type="checkbox" name="Hobby">ComputerGames
<input type="checkbox" name="Hobby">Reading
<br><br>
<input type="submit" value="login">
</form>
</body>
</html>

效果:

CSS

JS

  • 本文作者: FXJFXJ
  • 本文链接: https://fxj.wiki/posts/3663e048/
  • 版权声明: 本博客所有文章除特别声明外,均采用 ZERO 许可协议。转载请注明出处!