HTML、CSSの基本内容


HTMLとCSSの概念を理解する


HTMLはスケルトン、CSSはデコレーション!
InstagramでニコラスがHTMLやCSSの比喩を聞いたのを覚えています.
HTMLはすっぴんCSSはメイクです!本当に適当な比喩だ.
△私はこの比喩が好きです.
HTMLは大きく分けてheadとbodyです.
ヘッダーにはページの属性情報が含まれ、bodyには内容が含まれます.
headにはmeta、script、link、titleなどがあります.

bodyの代表的な要素に入ります!

<body>
<!-- 구역을 나누는 태그들 -->
<div>나는 구역을 나누죠</div>
<p>나는 문단이에요</p>
<ul>
<li> bullet point!1 </li>
<li> bullet point!2 </li>
</ul>
<!-- 구역 내 콘텐츠 태그들 -->
<h1>h1은 제목을 나타내는 태그입니다. 페이지마다 하나씩 꼭 써주는 게 좋아요. 그래야 구글 검색이 잘 되거든요.</h1>
<h2>h2는 소제목입니다.</h2>
<h3>h3~h6도 각자의 역할이 있죠. 비중은 작지만..</h3>
<hr>
span 태그입니다: 특정 <span style="color:red">글자</span>를 꾸밀 때 써요
<hr>
a 태그입니다: <a href="http://naver.com/"> 하이퍼링크 </a>
<hr>
img 태그입니다: <img src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" />
<hr>
input 태그입니다: <input type="text" />
<hr>
button 태그입니다: <button> 버튼입니다</button>
<hr>
textarea 태그입니다: <textarea>나는 무엇일까요?</textarea>

簡単なログインページの作成

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>로그인페이지</title>
</head>
<body>
	<h1>로그인 페이지</h1>
	<p>ID: <input type="text"/></p>
	<p>PW: <input type="text"/></p>
<button>로그인하기</button>
</body>
</html>

CSSベース


背景関連
background-color
background-image
background-size
サイズ
width
height
フォント
font-size
font-weight
font-famliy
color
間隔
マージンの調整=外側
padding=内側マージンの調整
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>스파르타코딩클럽 | 로그인페이지</title>
<style>
  .mytitle {
  color: white;
  width: 300px;
  height: 200px;
  background-image: url('https://www.ancient-origins.net/sites/default/files/field/image/Agesilaus-II-cover.jpg');
  background-position: center;
  background-size: cover;
  border-radius: 10px;
  text-align: center;
  padding-top: 40px;
}
</style>
</head>
<body>
<div class="mytitle">
  	<h1>로그인 페이지</h1>
  	<h5>아이디, 비밀번호를 입력해주세요</h5>
</div>
<div>
	<p>ID: <input type="text" /></p>
	<p>PW: <input type="password" /></p>
</div>
<button>로그인하기</button>
</body>
</html>
bodyのdiv class=「mytitle」はstyleでcssを提供します.mytitleを使います.書きます.
div id=mytitleの場合、#が使用されます.

完成本



完全なコード

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>로그인페이지</title>
    <link href="https://fonts.googleapis.com/css2?family=Jua&display=swap" rel="stylesheet">
</head>
<style>
    * {
        font-family: 'Jua', sans-serif;
    }
    .mytitle {
        background-color: green;

        width: 300px;
        height: 200px;

        color: white;

        text-align: center;

        background-image: url("https://www.ancient-origins.net/sites/default/files/field/image/Agesilaus-II-cover.jpg");
        background-size: cover;
        background-position: center;

        border-radius: 10px;

        padding-top: 10px;
    }

    .wrap {

        width: 300px;
        margin: auto;
    }
</style>
<body>
<div class="wrap">
    <div class="mytitle">
        <h1>로그인페이지</h1>
        <h5>아이디, 비밀번호를 입력해주세요.</h5>
    </div>
    <p>ID : <input type="text"/></p>
    <p>PW : <input type="text"/></p>
    <button class="mybutton">로그인 하기</button>
</div>
</body>
</html>