一個簡單的頁面設計
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Love Taiwan</title>
</head>
<body>
<h1>Welcome, my friends!</h1>
<div>
<p>Taiwan is a beautiful place. I hope you can have a good time in Taiwan.</p>
<img src="https://i.imgur.com/Vo5RCxi.png" width="50%"/>
</div>
<div class="course">
In this course, you will learn the following topics:
<ul>
<li>Basic HTML document structure</li>
<li>Basic CSS syntax</li>
<li>Basic JavaScript syntax</li>
<li>Basic canvas-drawing programming (with Konva)</li>
<li>Basic Webduino bit programming</li>
<li>An integrated project with Web programming and Webduino Bit</li>
</ul>
</div>
</body>
</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
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
CSS
h1 {
color: white;
background: blue;
text-align: center;
font-size: 120%;
padding: 12px;
}
body {
background: #ffffe0;
color: blue;
text-align: center;
font-family: sans-serif;
font-size: 100%;
}
.course {
width: 500px;
margin: 20px auto;
color: green;
text-align: left;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
結果
練習
把代碼放到 jsbin 或 jsFiddle 中,設著做一些修改。