๐Ÿ”ฐ "HTML์— ๋ถ€ํŠธ ์ŠคํŠธ๋žฉ์„ ํ†ตํ•ฉ ํ•œ ํ›„ CSS๊ฐ€ ๋ฐ˜์˜๋˜์ง€ ์•Š์Œ"์˜ค๋ฅ˜ ํ•ด๊ฒฐ

6794 ๋‹จ์–ด HTMLCSSHTML5Bootstrap
์˜ค๋Š˜ ๊ณต๋ถ€ํ•  ๋•Œ ๋ฐœ์ƒํ•œ ์˜ค๋ฅ˜ ๊ธฐ๋ก์ž…๋‹ˆ๋‹ค.

<๋‚ด์šฉ>
html์— Bootstrap์„ ํ†ตํ•ฉํ•˜๋Š” ์ค‘ <hr>,<h1> css๊ฐ€ ๋ฐ˜์˜๋˜์ง€ ์•Š๋Š” ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค.

index.html
<!DOCTYPE html>
<html lang="ja">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>ใ”ๅˆฉ็”จใ‚ขใƒณใ‚ฑใƒผใƒˆ</title>

  <link rel="stylesheet" href="../css/style.css">
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
</head>
<body>
  <div class="container">
    <header>
      <div class="row">
        <div class="col-sm-6">
          <h1>ใ”ๅˆฉ็”จใ‚ขใƒณใ‚ฑใƒผใƒˆ</h1>
        </div>
        <div class="col-sm-6 align-right">
          <a href="/">HOMEใธๆˆปใ‚‹</a>
        </div>
      </div>
    </header>
  </div>

    <hr>

    <hr>

  <div class="container">   
    <footer>
      <p>&copy; H20 space</p>
    </footer>
  </div>

</body>
</html>

style.css
header {
  margin-top: 30px;
  color: #2e99a9;
}

hr {
  border-width: 3px;
  border-color: #2e99a9;
}

h1 {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}

.align-right {
  text-align: right;
}




<ํ™•์ธ ์‚ฌํ•ญ 1> ๊ฐœ๋ฐœ์ž ๋„๊ตฌ ํ™•์ธ




<ํ™•์ธ ์‚ฌํ•ญ 2> ์ฝ”๋“œ์˜ ๋งž์ถค๋ฒ• ์˜ค๋ฅ˜ ํ™•์ธ
๋ฌธ์ œ๊ฐ€ ์—†์œผ๋ฏ€๋กœ Google ๊ฒ€์ƒ‰์„ ์‹ค์‹œํ–ˆ์Šต๋‹ˆ๋‹ค.
<๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ>
๋ถ€ํŠธ ์ŠคํŠธ๋žฉ๊ณผ CSS ํŒŒ์ผ์ด ์‹ธ์šฐ๊ณ  ์žˆ์—ˆ๊ธฐ ๋•Œ๋ฌธ์ธ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

๏ผœ๊ฒ€์ฆโ‘ ๏ผžcss ํƒœ๊ทธ ์•ž์— ์ง์ „์˜ ํด๋ž˜์Šค๋ช…์„ ๋„ฃ์–ด ๋ณธ๋‹ค.col-sm-6 h1.conteiner hr๏ผœ๊ฒฐ๊ณผโ‘ ๏ผž์ „ํ˜€ ํšจ๊ณผ ์—†์Œ์„ ์œ„ํ•ด ๋‹ค์Œ์˜ ๊ฒ€์ฆโ‘ก๋กœ ์ง„ํ–‰๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๏ผœ๊ฒ€์ฆโ‘ก๏ผž

index.html
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
  <link rel="stylesheet" href="../css/style.css">

<๊ฒฐ๊ณผโ‘ก> ์„ฑ๊ณต! ! css ํŒŒ์ผ์ด link์— ๋ฐ˜์˜๋˜์—ˆ์Šต๋‹ˆ๋‹ค!


ํŒŒ์ผ ์šฐ์„ ์ˆœ์œ„์— ๋Œ€ํ•œ ์ง€์‹ ๋ณต์Šต ๋ถ€์กฑ์œผ๋กœ ์ธํ•ด ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค. ๋ณต์Šต, ์ถœ๋ ฅ์„ ์•ž์œผ๋กœ๋„ ๊ณ„์†ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค ๐Ÿ”ฅ

google ๊ฒ€์ƒ‰์‹œ์˜ ์ฐธ๊ณ  ๊ธฐ์‚ฌโ†“โ†“
css๊ฐ€ ํšจ๊ณผ๊ฐ€ ์—†๊ฑฐ๋‚˜ ๋ฐ˜์˜๋˜์ง€ ์•Š์„ ๋•Œ์˜ ๋Œ€์ฒ˜๋ฒ•
h tps://์‚ฌ๋ฃจ์™€์นด๊ตฐ. ์ด m / html - c / s / rdp re / s / t
teratail Q&A
htps : // ๋†€๋ผ์šด l. ์ฝ”m/์ฟ ์— s์น˜์˜จ s/86446

์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ