forked from 20JINN/PSWebCodingDesigner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
279 lines (266 loc) · 10.8 KB
/
index.html
File metadata and controls
279 lines (266 loc) · 10.8 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PS_WebCodingDesigner</title>
<link rel="stylesheet" type="text/css" media="screen" href="https://necolas.github.io/normalize.css/8.0.0/normalize.css"
/>
<link rel="stylesheet" type="text/css" media="screen" href="index.css" />
<script src="main.js"></script>
</head>
<body>
<div class="body-container">
<div class="header">
<div class="title">Welcome to Practical Studies</div>
<div class="sub-title">Web Coding for Designers</div>
<a class="btn-basic" href="https://buzzer.anzi.kr/">Buzzer Here</a>
</div>
<div class="contents-container">
<!--Day 1-->
<div class="index">
Day1.html/CSS Basic
</div>
<a class="reference-link" href="https://htmlreference.io/">#HTML Reference</a>
<a class="reference-link" href="https://cssreference.io/">#CSS Reference</a>
<div class="contents">
<div class="content-title"><Selecting specific tag></div>
<div class="underline"></div>
<div class="content-subtitle">☀ Select with 'Class'</div>
<div class="description">
First, define class name to a tag in html.
<br> And then in CSS, write down properties with
<span class="highlight-green-green">.Classname</span>.
</div>
<div class="example-code">
@html
<br> <div class="클래스이름">Hello world</div>
<br>
<br> @CSS
<br> .클래스이름 {
<br> color: red;
<br> background: yellow;
<br> }
</div>
<div class="underline"></div>
<div class="content-subtitle">☀ Select with 'Id'</div>
<div class="description">
Define id to a tag you want to select in html.
<br> Use
<span class="highlight-green">#Id</span> and give some style tag in CSS.
</div>
<div class="example-code">
@html
<br> <div id="아이디이름">유일한이름입니다</div>
<br>
<br> @CSS
<br> #아이디이름 { color: blue; }
</div>
</div>
<div class="contents">
<div class="content-title"><The 'Display' property></div>
<div class="description">
<span class="highlight-green">display</span> is CSS's most important property for controlling layout. Every element has a default display value
depending on what type of element it is.
<br> The default for most elements is usually block or inline.
<br> A block element is often called a block-level element and an inline element is always just called an inline element.
</div>
<div class="underline"></div>
<div class="content-subtitle">☀ inline : 현재 글줄에 이어서 표현됩니다</div>
<div class="example-code">
-display: inline
<br> -margin-top, margin-bottom이 적용되지 않습니다.
<br> -컨텐츠 고유의 사이즈로 표현됩니다.
<br>
</div>
<div class="content-subtitle">☀ block : 현재 글줄 다음에 Block단위로 표현됩니다</div>
<div class="example-code">
-display: block
<br> -부모 요소의 100% width를 차지합니다
<br> -margin이 적용됩니다
<br>
</div>
<div class="content-subtitle">☀ inline-block : 글줄에 이어서 표현하되 Block단위로 표현됩니다</div>
<div class="example-code">
-display: inline-block
<br> -컨텐츠 고유의 사이즈로 표현됩니다.
<br> -margin이 적용됩니다.
<br>
</div>
<div class="content-subtitle">☀ none : 문서에서 보이지 않게 만듭니다</div>
<div class="example-code">
-display: none
</div>
</div>
<div class="contents">
<div class="content-title"><The 'Position' property></div>
<div class="description">
In order to make more complex layouts, we need to discuss the
<span class="highlight-green">position</span> property.
<br> Most of elements have 'static' value as default. It has a bunch of possible values, and their names make no sense
and are impossible to remember. Let's go through them one by one, but maybe you should bookmark this page too.
</div>
<div class="underline"></div>
</div>
<!--Day 2-->
<div class="index">
Day2.Basic CSS Outline2
</div>
<div class="contents">
<div class="content-title"><How to remove unnecessary margin?></div>
<div class="underline"></div>
<div class="content-subtitle">☀ Use
<span class="highlight-green">
<a href="https://necolas.github.io/normalize.css/">normalize.css</a>
</span>
</div>
<div class="description">- Inside the head tag in html, put code below before main.css.</div>
<div class="example-code">
<link rel="stylesheet" type="text/css" media="screen" href="https://necolas.github.io/normalize.css/8.0.0/normalize.css"/>
</div>
</div>
<div class="contents">
<div class="content-title"><Easy way to set margin value></div>
<div class="underline"></div>
<div class="content-subtitle">☀ 1.Comebine (top/bottom) and (left/right)</div>
<div class="description">- The first value indicates top/bottom margin and second points left/right margin.</div>
<div class="content-subtitle">☀ 2.Define (top, right, bottom, left) value in single property.</div>
<div class="description">- Four value indecates top, right, bottom, left value each in a clockwise.</div>
<div class="margin-ex1">
<span class="margin-top-ex">
<span class="rec1"></span>
<span class="rec2">a'</span>
<span class="rec3"></span>
</span>
<span class="margin-middle">
<span class="rec4">d'</span>
<span class="rec5"></span>
<span class="rec6">b'</span>
</span>
<span class="margin-bottom">
<span class="rec7"></span>
<span class="rec8">c'</span>
<span class="rec9"></span>
</span>
</div>
<div class="example-code" id="margin-ex1">
1.property: top/bottom, left/right;
<br> margin:
<span class="highlight-pink">20px</span>
<span class="highlight-blue">30px</span>;
<br> padding:
<span class="highlight-pink">20px</span>
<span class="highlight-blue">30px</span>;
<br>
<br> 2.property:
<span class="highlight-green">a' b' c' d'</span>;
<br> margin: 20px 15px 20px 15px;
<br> padding: 20px 15px 20px 15px;
</div>
</div>
<div class="practice-container">
<div class="content-title"><Check this out!></div>
<div class="underline"></div>
<div class="content-subtitle">☀ 1.span with indent</div>
<span id="r1"></span>
<span id="r2"></span>
<span id="r3"></span>
<div class="example-code">
@html
<br> <span id="r1"></span>
<br> <span id="r2"></span>
<br> <span id="r3"></span>
<br>
<br> @CSS
<br> #r1, #r3{
<br> width: 30px;
<br> height: 30px;
<br> display: inline-block;
<br> background-color: rgba(62, 24, 199, 0.28);
<br> }
<br> #r2 {
<br> width: 228px;
<br> height: 30px;
<br> display: inline-block;
<br> background-color: rgba(107, 115, 126, 0.3);
<br> }
</div>
<div class="underline"></div>
<div class="content-subtitle">☀ 2.span without indent</div>
<span id="r1"></span><span id="r2"></span><span id="r3"></span>
<div class="example-code">
@html
<br> <span id="r1"></span><span id="r2"></span><span id="r3"></span>
<br>
<br> @CSS : <span class="highlight-green">same with ☀1</span>
<br> #r1, #r3{
<br> width: 30px;
<br> height: 30px;
<br> display: inline-block;
<br> background-color: rgba(62, 24, 199, 0.28);
<br> }
<br> #r2 {
<br> width: 228px;
<br> height: 30px;
<br> display: inline-block;
<br> background-color: rgba(107, 115, 126, 0.3);
<br> }
</div>
<div class="underline"></div>
<div class="content-subtitle">☀ 3.span with indent and float properties</div>
<span id="r1f"></span>
<span id="r2f"></span>
<span id="r3f"></span>
<div class="example-code" id="flex-example">
@html
<br> <span id="r1f"></span>
<br> <span id="r2f"></span>
<br> <span id="r3f"></span>
<br>
<br> @CSS
<br> #r1f, #r3f{
<br> width: 30px;
<br> height: 30px;
<br> display: inline-block;
<br> background-color: rgba(62, 24, 199, 0.28);
<br> float: left;
<br> }
<br> #r2f {
<br> width: 228px;
<br> height: 30px;
<br> display: inline-block;
<br> background-color: rgba(107, 115, 126, 0.3);
<br> float: left;
<br> }
</div>
</div>
<div class="practice-container">
<div class="content-title"><Let's practice!></div>
<a class="example-img" href="./images/practice1.png">
<img src="./images/practice1.png" alt="sample1">
</a>
</div>
<div class="index">
Day2.Basic javascript
</div>
<div class="contents">
<div class="content-title">변수</div>
<div class="underline"></div>
<div class="content-subtitle">☀ Use 프로그래밍을 할 때 가장 많이 쓰게 되는 변수는 **변할 수 있는 값**을 뜻합니다.
</div>
<div class="description">
변수를 선언하는 행위를 컴퓨터에게 단어 공부를 시킨다고 생각합시다.
<br>
<br> var 숫자 = 123;
<br>var 인사말 = "안녕하세요";
<br> var 실화냐 = true;
<br> var 자식들 = ["철수", "영희", "지홍"];
<br> var 나 = {이름: "안지용", 신장: 186};
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>