본문 바로가기

HTML &CSS 복습

HTML,CSS - 회원가입 table 만들기

퇴사를 하고 2020년 4월부터 종로그린컴퓨터아트학원에서 웹디자인과 html,css,jquery를 배우고있다.

웹디자이너&웹퍼블리셔 과정인데, 디자인은 흥미가 있어서 재밌게 배웠지만, 코딩은 어려워서 애쓰고 있다..^^

 

그래서 여기서 기록을 남기면서

복습을 하려고한다. 

 

학원 시험으로 만들었던 테이블인데,

아이디, 비밀번호, 휴대폰 등 을 입력하는 테이블구성이다.

 

 

<!DOCTYPE html>

<html lang="ko">

<head>

    <meta charset="utf-8">

    <meta http-equiv="X-UA-compatible" content="IE=edge,chrome=1">

    <meta name="viewport" content="width=device-width">

    <title>테스트3</title>

    <style>

 

//기본셋팅

 

    @font-face{

    font-family"notom";

    src:url('../../../font/NotoSansKR-Regular.eot');

    src:url('../../../font/NotoSansKR-Regular.eot?#iefix') fotmat("eot"),

    url('../../../font/NotoSansKR-Regular.woff') format("woff"),

    url('../../../font/NotoSansKR-Regular.otf') format("opentype");

    font-weightnormal;

    font-stylenormal;

    }

 

//폰트를 참조해준다.

 

    .font1 {font-family: notom; font-size12pxcolor#333333font-weightbolderpositionabsolute;}

    .font2 {font-family: notom; font-size14pxfont-weightboldcolor#333333;  positionrelativeleft50px;}

 

//폰트 정의

 

    body { margin0padding0; }

 

    .btn0 {background-color#0066baborder0color#ffffffborder-radius5pxheight100pxheight40px;}

    .btn1 {background-color#0066bacolor#ffffffwidth100pxheight30pxborder0border-radius5px; }

    .btn2 {background-color#aaaaaacolor#ffffffwidth100pxheight30pxborder0border-radius5pxmargin-left25px;}

 

//버튼 정의

 

    .div1 {width1000pxheight400pxborder1px solid #ccccccmargin0 autofont

family'notom'positionabsolute;}

    .tablecss {width900pxheight240pxborder1px solid #0067b8margin0 autolist-stylenonepadding0positionrelativebottom20pxleft45px;}

    .tablecss > li {width120pxheight40px;}

    .tablecss > li:nth-child(1) {width120px;  border1px solid  #0067b8;}

    .div1 ul li {floatleft; } //

    .div1 ul {floatleftlist-stylenone;}

    .li {width120pxheight40px;}

 

//div 클래스 정의

 

    .text1 {width200pxheight30px;}

    .text2 {width400pxheight30px;} //텍스트 크기 정의

    .divbtn {width600pxheight30pxtext-aligncentermargin-top30pxpositionrelativeleft350pxbottom10px; }

    </style>

</head>


//회원가입 테이블

 

<body>

    

    <div class="div1">

        <p><font class="font2">간편회원가입</font></p>

        <br><br>

    <ul class="tablecss" >

 

        <ul class="css1">

        <li class="li"> <font class="font1">회원아이디</font></li

        <li><input type="text" class="text1"> &nbsp;<input type="button" value="중복확인" class="btn0"></li>

        </ul>

        <br><br>

        <ul class="css1">

        <li class="li"><font class="font1">패스워드</font></li>

        <li><input type="password" class="text1"></li> &nbsp; &nbsp;

        <li class="li"><font class="font1">패스워드확인</font></li>

        <li><input type="password" class="text1"></li>

        </ul>

        <br><br>

        <ul class="css1">

        <li class="li"><font class="font1">회원인증 휴대폰</font></li>

        <li><input type="text" class="text1"><font class="font1"> &nbsp;"." 포함하지 않고 숫자만 입력하시면 됩니다.</font></li>

        </ul> 

        <br><br>

        <ul class="css1">

        <li class="li"><font class="font1">회원 이메일</font></li>

        <li><input type="text" class="text2"></li>

        </ul>

        <br><br>

        <ul class="css1">

        <li class="li"><font class="font1">VIP 회원코드 번호</font></li>

        <li><input type="text" class="text2">&nbsp;<font class="font1"> ※ VIP 회원코드를 가지고 계신 고객분은 입력해 주시길 바랍니다.</font></li>

        </ul>

 

        

 

        <br><br>

        <ul class="css6">

        <li class="li"><font class="font1">구매의사 소프트웨어</font></li>

        <li><input type="radio" name="a">윈도우10

            <input type="radio" name="a">MS-OFFICE

            <input type="radio" name="a">X-BOX게임

        </li>

        </ul>

        

    </ul>

    <div class="divbtn">

    <ul class="css7">

        <li><input type="button" value="회원가입" class="btn1"></li>

        <li><input type="reset" value="가입취소" class="btn2"></li>

    </ul>

    </div>

    </div>

</body>

</html>

 

위의 코드를 작성하면 아래와 같은 

 

 

 

 

 

'HTML &CSS 복습' 카테고리의 다른 글

class, display,ol,ul,li,span,video 속성 이용 연습  (0) 2020.05.28