본문 바로가기

Python_WEB/HTML

[Ch7]HTML과 CSS로 웹 사이트 만들기 연습문제 3

반응형

Q>

본문에서 구현된 작은 웹 사이트에서는 아직 완성하지 못한 페이지가 많다.

페이지를 작성하여 전체 사이트를 완성하여 보자.

 

A>

register 페이지 - 회원가입 페이지 수정 정렬

 

<!DOCTYPE html>
<html lang="ko">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>회원 가입</title>
    <link rel="stylesheet" href="css/mystyle.css">
</head>

<body>
    <table id="page-wrap">
        <caption>회원정보입력</caption>
        <tr>
            <th>
                <label for="name">아이디</label>
            </th>
            <td>
                <input type="text" name="name" id="text1" /> <button>중복검사</button>
            </td>
        </tr>

        <tr>
            <th><label for="password1">패스워드</label></th>
            <td>
                <input type="password" name="password1" />
            </td>
        </tr>

        <tr>
            <th>
                <label for="password2">패스워드확인</label>
            </th>
            <td>
                <input type="password" name="password2">
            </td>
        </tr>

        <tr>
            <th>
                <label for="name">이름</label>
            </th>
            <td>
                <input type="text" name="name" />
            </td>
        </tr>

        <tr>
            <th>
                <label for="tel">휴대폰번호</label>
            </th>
            <td>
                <input type="tel" name="tel" />
            </td>
        </tr>

        <tr>
            <th>
                <label for="email">이메일</label>
            </th>
            <td>
                <input type="email" name="email" />
            </td>
        </tr>

        <tr>
            <th>
                <label for="dob">생일</label>
            </th>
            <td>
                <input type="date" name="dob" />
            </td>
        </tr>

        <tr>
            <th>
                <label for="url">홈페이지</label>
            </th>
            <td>
                <input type="url" name="url" />
            </td>
        </tr>

        <tr>
            <th>
                <label for="gender">성별</label>
            </th>
            <td>
                <input type="radio" name="gender" value="Male">
                남성<br>
                <input type="radio" name="gender" value="Female">
                여성<br>
            </td>
        </tr>
    </table>

    <div id="center">
        <input type="submit" name="submit" value="제출" />
        <input type="reset" name="reset" value="초기화" />
    </div>

    <div id="back">
        <a href="index.html">Back to Home</a>
    </div>
</body>

</html>

 

* {
  /*border: 1px solid red;*/
  padding: 0px;
  margin: 0px;
}

body {
  background-color: #f3f1e9;
  height: 100%;
}

a,
#back {
  text-decoration: none;
  color: #3f3f3f;
}

a:hover {
  color: #ff088f;
  text-shadow: 4px 2px 2px gray;
}

caption {
  font-size: 30px;
  font-weight: bold;
}

#page-wrap {
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 10px;
}
  
 #back {
  text-align: center;
}

 

R>

 

HTML5 + CSS3 + JavaScript로 배우는 웹프로그래밍 기초
국내도서
저자 : 천인국
출판 : 인피니티북스 2013.12.19
상세보기
반응형