CSS 실습 1





1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <style>
        header {
            border-bottom:1px solid gray;
            padding:20px;
        }
        nav {
            border-right:1px solid gray;
            width:200px;
            height:600px;
            float:left;
        }
        nav ol{
            list-style: :none;
        }
        article{
            float:left;
            padding:20px;
        }
   </style>
</head>
<body>
    <header>
        <h1><a href="http://localhost/">JavaScript</a></h1>
    </header>
    <nav>
        <ol>
            <li><a href="http://localhost/page_html.html">JavaScript란?</a></li>
            <li><a href="http://localhost/page_vc.html">변수와 상수</a></li>
            <li><a href="http://localhost/page_op.html">연산자</a></li>
        </ol>
    </nav>
    <article>
        <h2>변수와 상수</h2>
        변수란
        <ul>
            <li>변하는 값</li>
            <li>x=10일 때 왼쪽항인 x는 오른쪽 항인 10에 따라 다른 값이 지정된다.</li>
        </ul>
        상수란
        <ul>
            <li>변하지 않는 값</li>
            <li>x=10일 때 오른쪽 항인 10이 상수가 된다.</li>
        </ul>
    </article>
</body>
</html>
cs

Study from 생활코딩

댓글