๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐“ก๐“ธ๐“ธ๐“ถ3:๐น๐“‡๐‘œ๐“ƒ๐“‰๐‘’๐“ƒ๐’น/๐“ก๐Ÿฅ๐Ÿข๐Ÿฃ:๐ป๐’ฏ๐‘€๐ฟ&๐’ž๐’ฎ๐’ฎ

[HTML] 1. HTML ๊ธฐ๋ณธ ๋ฌธ๋ฒ•

HTML = HyperText Markup Language

์‚ฌ๋žŒ๋„ ์•Œ์•„๋“ค์„ ์ˆ˜ ์žˆ๊ณ , ์›น ๋ธŒ๋ผ์šฐ์ €๋„ ์•Œ์•„ ๋“ค์„ ์ˆ˜ ์žˆ๋Š” ์–ธ์–ด

 

ํ•˜์ดํผ ํ…์ŠคํŠธ 

(๋งํฌ)

๋งํฌ๋กœ ์—ฐ๊ฒฐ๋œ ๊ฑฐ๋Œ€ํ•œ ์ •๋ณด ๋ฉ์–ด๋ฆฌ = WEB

 

๋งํฌ๋Š” HTML์˜ ๋ณธ์งˆ, HTML์˜ ๋ณธ์งˆ์€ ์›น์˜ ๋ณธ์งˆ

 

Markup Language

- Tag (์‹œ์ž‘ํƒœ๊ทธ, ๋ํƒœ๊ทธ)

ex)

<strong>๊ฐ•์กฐ</strong>

ex)

<html>
    <head>
            <meta charset = "utf-8" />
    </head>
    <body>
            ์•ˆ๋…•ํ•˜์„ธ์š”. <strong> ์ƒํ™œ์ฝ”๋”ฉ </strong>์ž…๋‹ˆ๋‹ค.
    </body>
</html>

์ฐธ๊ณ ) VS Code์—์„œ open in browser๋ฅผ ๊น”๊ณ  htmlํŒŒ์ผ์— ์šฐํด๋ฆญ ํ•œ ํ›„ open with default browser๋ฅผ ๋ˆ„๋ฅด๋ฉด HTML์ฝ”๋“œ๋ฅผ ๋ธŒ๋ผ์šฐ์ €๋กœ ์—ด์–ด์„œ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.

 

1) a ํƒœ๊ทธ = url, ๋งํฌ

 

์•ˆ๋…•ํ•˜์„ธ์š”. <a href="http://opentutorials.org/course/1"> ์ƒํ™œ์ฝ”๋”ฉ </a>์ž…๋‹ˆ๋‹ค.

href = ์†์„ฑ๋ช…, ์•ฝ์†๋˜์–ด ์žˆ์Œ. (hypertext reference)

href๋กœ ์—ฐ๊ฒฐํ•  url ์†์„ฑ ์ •์˜

์•ˆ๋…•ํ•˜์„ธ์š”. <a href="http://opentutorials.org/course/1" target="_black"> ์ƒํ™œ์ฝ”๋”ฉ </a>์ž…๋‹ˆ๋‹ค.

target="_blank"๋ฅผ ํ†ตํ•ด ์ƒˆํƒญ์—์„œ ์—ด๊ธฐ ๊ตฌํ˜„

 

์œ„ ์ฝ”๋“œ์˜ ๊ฒฝ์šฐ aํƒœ๊ทธ์— ๋‘ ๊ฐœ์˜ ์†์„ฑ์„ ๊ฐ€์ง€๊ณ  ์žˆ์Œ. ์†์„ฑ๊ณผ ์†์„ฑ์˜ ๊ตฌ๋ถ„์€ ๋„์–ด์“ฐ๊ธฐ

 

2) li ํƒœ๊ทธ = list ๋งŒ๋“ค๊ธฐ

<li> 1๋ฒˆ </li>
<li> 2๋ฒˆ </li>
<li> 3๋ฒˆ </li>

ol, ul (ordered list, unordered list)

<html>
    <head>
            <meta charset = "utf-8" />
    </head>
    <body>
        <ol>
            <li>ใ…Žใ…Ž</li>
            <li>ใ…‹ใ…‹</li>
        </ol>
        <ul> 
            ์•ˆ๋…•ํ•˜์„ธ์š”. <a href="http://opentutorials.org/course/1" target="_black"> ์ƒํ™œ์ฝ”๋”ฉ </a>์ž…๋‹ˆ๋‹ค.
            <li> 1๋ฒˆ </li>
            <li> 2๋ฒˆ </li>
            <li> 3๋ฒˆ </li>
        </ul>
    </body>
</html>

body ํƒœ๊ทธ : ๋ณธ๋ฌธ, ๋ฌธ์„œ์˜ ๋‚ด์šฉ

head ํƒœ๊ทธ : ๋ฌธ์„œ์— ๋Œ€ํ•œ ์ •๋ณด๋ฅผ ๋‹ด๊ณ  ์žˆ์Œ. 

ex)

 <meta charset = "utf-8" />
 <title> ์ƒํ™œ์ฝ”๋”ฉ</title>

html ํƒœ๊ทธ : ํƒœ๊ทธ ์•ˆ ์ชฝ์˜ ์ฝ”๋“œ๊ฐ€ html ์ฝ”๋“œ์ž„์„ ์•Œ๋ ค์คŒ

 

 

- doc type.

<!DOCTYPE html>

 HTML 5์˜ ๊ฒฝ์šฐ์—” ์ € ์œ„์˜ ์ฝ”๋“œ๋ฅผ ๋งจ ์•ž์— ์จ์ฃผ๋Š” ๊ฒƒ์ด ์ข‹๋‹ค.

 

- Tag Reference : 

 

http://dev.w3.org/html5/html-author

 

HTML5 Reference

The i element represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, a thought, a ship name, or some other prose whos

dev.w3.org

 

http://opentutorials.org/course/1058

 

HTML ์‚ฌ์ „ - ์ƒํ™œ์ฝ”๋”ฉ

๋ณธ ์ฝ”์Šค๋Š” HTML์˜ ์‚ฌ์šฉ๋ฒ•์„ ์ฐพ์•„ ๋ณผ ์ˆ˜ ์žˆ๋Š” ์‚ฌ์ „ ์ž…๋‹ˆ๋‹ค. ๋ณธ ์ฝ”์Šค๋Š” ๋ฆฌ์ฒด๋‹˜์˜ HTML 5 Tag Dictionary ๋ชจ๋“ˆ์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์ข‹์€ ์‚ฌ์ „์„ ๋งŒ๋“ค์–ด์ฃผ์‹  ๋ฆฌ์ฒด๋‹˜ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. ^^

opentutorials.org