html,css ๊ธฐ๋ณธ ์ ๋ฆฌ
๐ html
form ํ๊ทธ
action : ์ ๋ ฅ ๋ฐ์ดํฐ(form data)๊ฐ ์ ์ก๋ URL ์ง์
method : ์ ๋ ฅ ๋ฐ์ดํฐ(form data) ์ ๋ฌ ๋ฐฉ์ ์ง์
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="test.css" >
<title>
Document
</title>
</head>
<body>
<div>
<form action="http://localhost:9172/auth/login/" method="post">
Email : <input type="text" name="email"><br>
Password : <input type="text" name="password">
<input type="submit" value="๋ก๊ทธ์ธ">
</form>
</div>
</body>
</html>
๋ด๊ฐ ๋ง๋ API์ ์์ฒญ์ ๋ณด๋๋๋ ๋ค์๊ณผ ๊ฐ์ด ์๋ต์ด ์๋ค.
๐ Block level ์์
ํน์ง
โ ํญ์ ์๋ก์ด ๋ผ์ธ์์ ์์ํ๋ค.
โ ํ๋ฉด ํฌ๊ธฐ ์ ์ฒด์ ๊ฐ๋กํญ์ ์ฐจ์งํ๋ค. (width: 100%)
โ width, height, margin, padding ํ๋กํผํฐ ์ง์ ์ด ๊ฐ๋ฅํ๋ค.
โ block ๋ ๋ฒจ ์์ ๋ด์ inline ๋ ๋ฒจ ์์๋ฅผ ํฌํจํ ์ ์๋ค
block ๋ ๋ฒจ ์์ ์
| Tag |
|---|
| div |
| h1 ~ h6 |
| p |
| ol |
| ul |
| li |
| hr |
| table |
| form |
๐ Inline level ์์
ํน์ง
โ ์ค์ ๋ฐ๊พธ์ง ์๊ณ ๋ค๋ฅธ ์์์ ํจ๊ป ํ ํ์ ์์นํ๋ค.
โ content์ ๋๋น๋งํผ ๊ฐ๋กํญ์ ์ฐจ์งํ๋ค.
โ width, height, margin-top, margin-bottom ํ๋กํผํฐ๋ฅผ ์ง์ ํ ์ ์๋ค. ์, ํ ์ฌ๋ฐฑ์ line-height๋ก ์ง์ ํ๋ค.
โ inline ๋ ๋ฒจ ์์ ๋ด์ block ๋ ๋ฒจ ์์๋ฅผ ํฌํจํ ์ ์๋ค. inline ๋ ๋ฒจ ์์๋ ์ผ๋ฐ์ ์ผ๋ก block ๋ ๋ฒจ ์์์ ํฌํจ๋์ด ์ฌ์ฉ๋๋ค.
inline ๋ ๋ฒจ ์์ ์
| Tag |
|---|
| span |
| a |
| strong |
| img |
| br |
| input |
| select |
| textarea |
| button |
๐ Inline-Block level ์์
ํน์ง
Block level๊ณผ Inline level์ ํน์ง์ ๋ชจ๋ ๊ฐ์ง๋ค.
