step 1 RUN
x
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<html>
3
<head>
4
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
    <title>Insert title here</title>
6
    <link rel="stylesheet" type="text/css" href="style.css">
7
    <style type="text/css">
8
        * {
9
            margin: 0px;
10
            padding: 0px;
11
        }
12
13
        #main {
14
            margin: 20px auto;
15
            width:  600px;
16
            border: 1px solid #999;
17
            padding: 10px;
18
        }
19
20
        #main  h1 {
21
            color: red;
22
            text-align: center;
23
        }
24
25
        #main  div.row{
26
            margin-top: 20px;
27
        }
28
29
        #main  div.row span{
30
            display: inline-block;
31
            width: 255px;
32
            text-align: right;
33
        }
34
        #main div.row input[type=text]{
35
            padding: 3px 5px;
36
        }
37
38
        #main  div.row input[type=submit]{
39
            padding: 3px 5px;
40
            display: block;
41
            margin: 0px auto 20px auto;
42
        }
43
        #result{
44
            text-align: center;
45
            color: red;
46
            font-style: italic;
47
        }
48
    </style>
49
</head>
50
<body>
51
    <div id="main">
52
        <h1>Tra Cứu Năm Tuổi Từ 1960</h1>
53
        
54
        <form name="checkage" action="#" method="post">
55
            <div class="row">
56
                <span>Năm Sinh :</span>
57
                <input id="birthday" type="text" name="birthyear" placeholder="Nhập năm sinh của bạn"/>
58
            </div>
59
            <div class="row">
60
                <span>Năm Kiểm Tra :</span>
61
                <input id="checkyear" type="text" name="checkyear" placeholder="Nhập năm bạn muốn kiểm tra"/>
62
            </div>
63
            <div class="row">
64
                <input type="submit" name="submit" value="Tra Cứu" />
65
            </div>
66
            <div id="result">
67
            </div>
68
        </form>
69
        
70
    </div>
71
</body>
72
</html>