AHA๐Ÿ‘Œ - HTML ๊ธฐ๋ณธ ๊ฐœ๋…

SeomIIIยท2021๋…„ 7์›” 13์ผ
0

AHA๐Ÿ‘Œ

๋ชฉ๋ก ๋ณด๊ธฐ
3/14
post-thumbnail

๐Ÿ“Œhtml?

: ํ•˜์ดํผํ…์ŠคํŠธ ๋งˆํฌ์—… ์–ธ์–ด (HyperText Markup Language)

  • ๋ธŒ๋ผ์šฐ์ €์—์„œ ์‹คํ–‰ ๊ฐ€๋Šฅํ•œ ๊ฐ€์žฅ ๊ธฐ๋ณธ์ ์ธ ํŒŒ์ผ
  • ๊ตฌ์กฐ์ ์œผ๋กœ ํƒœ๊ทธ๋ฅผ ์‚ฌ์šฉํ•ด์„œ ์›นํŽ˜์ด์ง€๋ฅผ ๋งŒ๋“ ๋‹ค.
<!DOCTYPE html>
    <!--https://developer.mozilla.org/ko/docs/Web/HTML-->
    <!--head๋Š” ์‚ฌ์šฉ์ž์—๊ฒŒ ๋ณด์—ฌ์ง€๋Š” ์ •๋ณด๊ฐ€ ์—†๊ณ , ๋ฉ”ํƒ€ ๋ฐ์ดํ„ฐ๋งŒ ์žˆ์Œ-->
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width">
        <title>JS Bin</title> 
    </head>
    <!--์‚ฌ์šฉ์ž์—๊ฒŒ ๋ณด์—ฌ์ง€๋Š” ๊ฐ€์žฅ ์ตœ์ƒ์œ„ ์ปจํ…Œ์ด๋„ˆ-->
    <body>
        <h1>Heading1</h1>
        <h2>Heading2</h2>
        <button>Click me!</button>
       
    </body>
</html>
  • ํƒœ๊ทธ๋Š” box or item ๋‘๊ฐ€์ง€๋กœ ๋‚˜๋‰œ๋‹ค.
    ์‚ฌ์šฉ์ž๊ฐ€ ๋ณผ ์ˆ˜ ์žˆ๋Š” item / section์„ ๋‚˜๋ˆ„๋Š” ๋ณด์ด์ง€ ์•Š๋Š” box (CSS๋ฅผ ์ด์šฉํ•ด์„œ box๋ฅผ ๊พธ๋ฐ€ ์ˆ˜ ์žˆ๋‹ค.)

<!DOCTYPE html>
    <!--https://developer.mozilla.org/ko/docs/Web/HTML-->
    <!--head๋Š” ์‚ฌ์šฉ์ž์—๊ฒŒ ๋ณด์—ฌ์ง€๋Š” ์ •๋ณด๊ฐ€ ์—†๊ณ , ๋ฉ”ํƒ€ ๋ฐ์ดํ„ฐ๋งŒ ์žˆ์Œ-->
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width">
        <title>JS Bin</title> 
    </head>
    <!--์‚ฌ์šฉ์ž์—๊ฒŒ ๋ณด์—ฌ์ง€๋Š” ๊ฐ€์žฅ ์ตœ์ƒ์œ„ ์ปจํ…Œ์ด๋„ˆ-->
    <body>
        <h1>Heading1</h1>
        <h2>Heading2</h2>
        <button>Click me!</button>

        <!--Box vs Item-->
        <header></header>
        <footer></footer>
        <section></section>
        <div></div>
        <span></span>

        <!--item-->
        <h1>hi</h1>
        <button></button>

        <!-- a -->
        <a href="https://google.com" target=_blank>Click</a>

        <p>This is a sentence. <b>That</b>is..</p>
        <!--span์€ inline-->
        <p>This is a sentence. <span>That</span>is..</p>
        <!--div์€ block level-->
        <p>This is a sentence. <div>That</div>is..</p>

        <!--ol, ul, li -->
        <ol type="i" reversed>
            <li>1</li>
            <li>2</li>
            <li>3</li>
        </ol>

        <ul>
            <li>Hello</li>
            <li></li>
            <li></li>
        </ul>

        <!-- input -->
        <label for="input_name">Name: </label>
        <input id="input_name" type="password">

        
    </body>
</html>

ํฌ๋กฌ์—์„œ ctrl+shift+i ==> developer tool

์ฐธ๊ณ  ์˜์ƒ

profile
FE Programmer

0๊ฐœ์˜ ๋Œ“๊ธ€