๐ ๋ณธ๋ฌธ ์์ ๋ชฉ ํ๊ทธ
<h1></h1> ~ <h6></h6> ๊น์ง 6๋จ๊ณ์ ์์ ๋ชฉ์ ํํํ๋ค.
๐ข ์์
<h1>h1 ์์ ๋ชฉ</h1>
<h2>h2 ์์ ๋ชฉ</h2>
<h3>h3 ์์ ๋ชฉ</h3>
<h4>h4 ์์ ๋ชฉ</h4>
<h5>h5 ์์ ๋ชฉ</h5>
<h6>h6 ์์ ๋ชฉ</h6>
๐ ๊ฒฐ๊ณผ
h1 ์์ ๋ชฉ
h2 ์์ ๋ชฉ
h3 ์์ ๋ชฉ
h4 ์์ ๋ชฉ
h5 ์์ ๋ชฉ
h6 ์์ ๋ชฉ
๐ ๋จ๋ฝ ํ๊ทธ
<p> : paragraph์ p๋ก ํํ, ๋จ๋ฝ ํ๊ทธ๊ฐ ๋๋๋ฉด ์๋์ผ๋ก ๊ฐํ๋๋ค.
๐ข ์์
<p>paragraph p Tag ์
๋๋ค.</p>
<p>์๋์ผ๋ก ๊ฐํ์ด ๋ฉ๋๋ค.</p>
๐ ๊ฒฐ๊ณผ
paragraph p Tag ์ ๋๋ค.
์๋์ผ๋ก ๊ฐํ์ด ๋ฉ๋๋ค.
๐ ํ ์คํธ ๊ตฌ๋ถ ํ๊ทธ ๋ช ๊ฐ์ง
<i> : ํ
์คํธ์์ ์ด๋ค ์ด์ ๋ก ์ฃผ์์ ๊ตฌ๋ถํด์ผํ๋ ๋ถ๋ถ์ ๋ํ๋ธ๋ค.
<em> : ํ
์คํธ ๊ฐ์ธ๋ฅผ ๋ํ๋ธ๋ค. <em> ์ค์ฒฉํ๋ฉด ๋ ํฐ ๊ฐ์ธ๋ฅผ ๋ปํ๋ค.
๐ข ์์
<p>Get out of bed <em>now</em>!</p>
<p>We <em>had</em> to do something about it.</p>
<p>This is <em>not</em> a drill!</p>
<p>I looked at it and thought <i>This can't be real!</i></p>
๐ ๊ฒฐ๊ณผ
Get out of bed now!
We had to do something about it.
This is not a drill!
I looked at it and thought This can't be real!
๐ ๊ตฌ๋ถ์ ํ๊ทธ & ์ค ๋ฐ๊ฟ ํ๊ทธ
<hr> : ์ํ์ ์ ์ฝ์
ํ ์ ์๋ ํ๊ทธ, ์ข
๋ฃํ๊ทธ(/)๊ฐ ์์ด๋ ๋๋ค.
<br> : ์ค๋ฐ๊ฟ์ ์ฝ์
ํ ์ ์๋ ํ๊ทธ, ์ข
๋ฃํ๊ทธ๊ฐ ์์ด๋ ๋๋ค.
<hr>
<br>
๐ ๊ฒฐ๊ณผ
์ฌ์ด์ <br> ํ๊ทธ๋ก ๊ณต๋ฐฑ ๋ฃ์ ๊ฒ์ ๋๋ค.
๐ ๋ชฉ๋ก ํ๊ทธ
<ul> : ์์ ์๋ ๋ชฉ๋ก (unordered list)
<ol> : ์์ ์๋ ๋ชฉ๋ก (ordered list)
<dl> : ์ ์ ๋ชฉ๋ก (definition list)
<li> : ์์ ํฐ 3๊ฐ์ง ๋ชฉ๋ก ์คํ์ผ ์์ ๊ฐ๊ฐ์ list ํ
๐ข ์์
<ul>
<li>ul ๋ฆฌ์คํธ li 1</li>
<li>ul ๋ฆฌ์คํธ li 2</li>
</ul>
<ol>
<li>ol ๋ฆฌ์คํธ li 1</li>
<li>ol ๋ฆฌ์คํธ li 2</li>
</ol>
<ul>
<li>dl ๋ฆฌ์คํธ li 1</li>
<li>dl ๋ฆฌ์คํธ li 2</li>
</ul>
๐ ๊ฒฐ๊ณผ
- ul ๋ฆฌ์คํธ li 1
- ul ๋ฆฌ์คํธ li 2
- ol ๋ฆฌ์คํธ li 1
- ol ๋ฆฌ์คํธ li 2
- dl ๋ฆฌ์คํธ li 1
- dl ๋ฆฌ์คํธ li 2
๐ ์ปจ๋ฐ์ด๋ ํ๊ทธ
<div> : ์๋ฌด์๋ฏธ ์๋ ํ๊ทธ, ์ด๋ค ์ปจํ ์ธ ๋ค๋ผ๋ฆฌ ๋ชฉ์ ์ ๋ฐ๋ผ ๋ฌถ์ด์ผ ํ ๋ ์ฌ์ฉํ๋ค. ( ์ค๋ฐ๊ฟ O = block ์์ )
<span> : ์๋ฌด๋ฐ์๋ฏธ ์๋ ํ๊ทธ, <div>์ ๊ฐ์ด, ์ด๋ค ๋ชฉ์ ์ ๋ฐ๋ผ ๋ฌถ์ด์ผ ํ ๋ ์ฌ์ฉํ๋ค. ( ์ค๋ฐ๊ฟ X = inline์์ )
๐ข ์์
<div>
... ์ปจํ
์ธ 1 ....
</div>
<div>
...์ปจํ
์ธ 2...
</div>
<p><span>Some text</span></p>
๐ ํ ์ด๋ธ ํ๊ทธ
<table> : ํ
์ด๋ธ ์ปจํ
์ด๋์ด๋ฉฐ, ํ
์ด๋ธ์ ์์๊ณผ ๋์ ์ฝ์
<caption> : ํ
์ด๋ธ์ ์ ๋ชฉ
<thead> : ํ
์ด๋ธ์ ํค๋ ์
๊ทธ๋ฃน
<tbody> : ํ
์ด๋ธ์ ๋ฐ์ดํฐ๊ฐ ๋ค์ด๊ฐ๋ ์
๊ทธ๋ฃน
<tfoot> : ํ
์ด๋ธ์ ๋ฐ๋ฅ ์
๊ทธ๋ฃน
<tr> : ํ ๊ทธ๋ฃน, td์ th๋ฅผ ํฌํจ
<th> : ์ ๋ชฉ ์
<td> : ๋ฐ์ดํฐ ์
๐ข ์์
<table><caption>ํ
์ด๋ธ ์ ๋ชฉ</caption>
<thead>
<tr>
<th>thead ์ ๋ชฉ ์
</th>
<td>thead ๋ฐ์ดํฐ ์
1</td>
<td>thead ๋ฐ์ดํฐ ์
2</td>
</tr>
</thead>
<tbody>
<tr>
<th>thead ์ ๋ชฉ ์
</th>
<td>thead ๋ฐ์ดํฐ ์
1</td>
<td>thead ๋ฐ์ดํฐ ์
2</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>thead ์ ๋ชฉ ์
</th>
<td>thead ๋ฐ์ดํฐ ์
1</td>
<td>thead ๋ฐ์ดํฐ ์
2</td>
</tr>
</tfoot>
</table>
๐ ๊ฒฐ๊ณผ
thead ์ ๋ชฉ ์ | thead ๋ฐ์ดํฐ ์ 1 | thead ๋ฐ์ดํฐ ์ 2 |
---|---|---|
tbody ์ ๋ชฉ ์ | tbody ๋ฐ์ดํฐ ์ 1 | tbody ๋ฐ์ดํฐ ์ 2 |
tfoot ์ ๋ชฉ ์ | tfoot ๋ฐ์ดํฐ ์ 1 | tfoot ๋ฐ์ดํฐ ์ 2 |
๐ ํ์ดํผ๋งํฌ ํ๊ทธ
<a href="" target=""> : href ์์ฑ์ ์ด์ฉํด URL ๋๋ HTMLํ์ด์ง๋ก ์ด๋๊ฐ๋ฅํ๋ค.
target ์ต์
_blank : ์ ์๋์ฐ
_self : ํ์ฌ ์๋์ฐ
_parent : ๋ถ๋ชจ ์๋์ฐ
_top : ๋ธ๋ผ์ฐ์ ์๋์ฐ
๐ข ์์
<a href="www.google.com" target="_blank">๊ตฌ๊ธ๋ก ์ด๋</a>
๐ ๊ฒฐ๊ณผ
๐ ์ด๋ฏธ์ง ํ๊ทธ
<img src="์ฃผ์" alt="๋์ฒด ํ ์คํธ">
๐ข ์์
<img src="www.dog-zzang.co.kr/dog_board_f5/photo/80738700dog14.jpg" alt="ํ์คํค์ฌ์ง">
๐ ๊ฒฐ๊ณผ
๐ ์ธ์ฉ๋ฌธ ํ๊ทธ
<blockquote> : ์์ชฝ์ ํ ์คํธ๊ฐ ๊ธด ์ธ์ฉ๋ฌธ์์ ๋ํ๋ธ๋ค. ์ฃผ๋ก ๋ค์ฌ์ฐ๊ธฐ๋ฅผ ํ ๊ฒ์ผ๋ก ๊ทธ๋ ค์ง๋ค. (์ธํ ๋ณํ ๊ฐ๋ฅ)
๐ข ์์
<p>Words can be like X-rays, if you use them properly—they’ll go through anything.
You read and you’re pierced.</p>
</blockquote>
๐ ๊ฒฐ๊ณผ
Words can be like X-rays, if you use them properly—they’ll go through anything. You read and you’re pierced.
'WEB' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[React] JSX ๋ฌธ๋ฒ ๋ฐ ๋ ๋๋ง (0) | 2021.02.06 |
---|---|
[React] ๊ฐ์ & JS์ ์ฐจ์ด์ (0) | 2021.02.03 |
[JS] DOM,Event,Node๊ฐ์ฒด (0) | 2021.02.03 |
[HTML] HTML ์์ ํ๊ทธ ์ ๋ฆฌ (0) | 2021.02.02 |
[HTML] ์๋งจํฑ ํ๊ทธ ์ ๋ฆฌ (0) | 2021.02.02 |