'전체 글'에 해당되는 글 144

  1. 2022.03.10 아루몰 홈페이지 리뉴얼
  2. 2018.10.19 텍스트 요소
  3. 2018.10.19 목록 요소 (ul, ol, dl)
  4. 2018.10.19 이미지맵 (image map)
  5. 2018.10.18 xampp 설치
  6. 2018.10.15 javascript 조건문(conditional statement)
  7. 2018.10.14 javascript 기초2(자료형 변환, html요소 접근)
  8. 2018.10.14 javascript 기초(변수, 자료형, 연산자)
  9. 2018.10.14 javascript 삽입 위치
  10. 2018.10.09 css2.1 Full property table
  11. 2018.10.08 img 요소
  12. 2018.10.08 html5 새로운 input 요소
  13. 2018.10.07 table 만들기
  14. 2018.10.07 html, css 기본
  15. 2018.10.07 문서형 정의 및 선언(DTD), 네임스페이스, meta
  16. 2018.10.07 html css 공부하기 유용한 사이트
  17. 2017.08.16 홍콩-마카오 여행) 1일차 마카오로 출발 with 아루몰
  18. 2017.06.25 와콤 (WACOM) 인튜어스프로 PTH-660P
  19. 2017.06.23 과천 자매순대국
  20. 2017.06.23 인터넷 익스플로어 ie11 느릴때 멈출때 버벅일때 조치방법
  21. 2017.06.22 일러스트레이터 시작하기★팬톤 칼라(pantone color)
  22. 2017.06.22 일러스트레이터 시작하기★칼라(color) 다루기
  23. 2017.06.20 과천 맛집) 과천시 원문동 맛집 60계치킨 정말 맛있어요~60계 치킨 BEST of the CHICKEN
  24. 2017.06.20 스마트폰 화면녹화, 동영상캡처는 모비즌!
  25. 2017.06.20 가평 맛집) 옛골☆곤드레나물밥
  26. 2017.06.19 일러스트레이터 시작하기★동영상강좌3편- 기본 도형 그리기
  27. 2017.06.19 일러스트레이터 시작하기★동영상강좌2편-펜툴(Pen tool)
  28. 2017.06.16 일러스트레이터 시작하기★동영상강좌1편-화면구성, 새파일 만들기
  29. 2017.06.15 가족관계증명서 무료발급!! 유료싫어요~~
  30. 2017.06.15 이태원 맛집 바토스 VATOS 멕시코요리
2022. 3. 10. 10:57 카테고리 없음

아루몰은 동대문 신상 여성의류 쇼핑몰입니다.

 

이루몰 커뮤티니 aroomall.co.kr

쇼핑몰 aroomall.com


-----------------


동대문 신상 여성의류 쇼핑몰 아루몰입니다.

aroomall.com, 쿠팡, 네이버쇼핑, 지마켓, 11번가, 인터파크, 롯데ON 과 함께 합니다. 

 

 

 

posted by 해에게서소년에게
2018. 10. 19. 13:56 XHTML | CSS2

인용문

- blockquote : 긴 인용문.    block 요소만 포함 가능.

- q : 짧은 인용문.    inline요소, 텍스트 포함 가능.

- cite 속성 : 출처 명시.


강조

- 단락의 내용 중 강조하려는 부분에 사용

- em : 강조

- strong : 강한 강조

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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>Document</title>
    </head>
    <body>
        <!--
            blockquote : 긴 인용문.    block 요소만 포함 가능.
            q : 짧은 인용문.    inline요소, 텍스트 포함 가능.
            cite 속성 : 출처 명시.
        -->
        <h1>어니스트 헤밍웨이</h1>
        <blockquote cite="두산백과"><p>미국의 작가. 'Lost Generation' 작가의 한 사람. 일리노이 주 의사의
         가정에서 태어나 고등 학교를 졸업한 후, 노동 기타의 직업으로 전전하였다. 제1차 대전 중 지원하여
         야전 위생대(野戰衛生隊)로 프랑스에 갔었고, 후에 이탈리아 전선에서 부상당하였다. 전후 통신원으로
         파리에 있으면서 파운드(E.L. Pound)의 영향을 받아 처녀 작품집과 단편집을 발표하였다. 1926년 
         귀국하여 '로스트 제너레이션'의 쾌락 추구와 환멸을 그린 <strong>《해는 또다시 뜬다 The Sun also 
         Rises》</strong>를 발표하고, 이탈리아 전선의 체험과 배경(背景)을 묘사한 전쟁과 연애의 소설 
         <em>《무기여 잘 있거라 A Farewell to Arms(1929)》</em>에서 작가로서의 지위를 확립하였다. 단편
         및 장편에 걸필(傑筆)을 발휘하여 뒤의 작가에 영향을 끼친 바 크며, 에스파냐 내란에서 취재한
         《누구를 위하여 종은 울리나 For Whom the Bell Tolls(1940)》에 인기를 얻었다. 문체(文體)는
         하드보일드(hardboiled)로 불리는 간결 직절(直截)한 투, 사실주의와 구어(口語)의 특징을 극도로
         발휘함으로써 《강을 넘어 숲으로》는 평이 좋지 않았으나, 《노인과 바다》로는 퓰리처 상을
         받았고, 이어 1954년 노벨 문학상을 받았다.</p></blockquote>

        <q cite="인명사전">미국의 소설가. 자연주의적인, 또는 폭력적인 테마나 사건을 무감정의 냉혹한 
            자세로 불필요한 수식을 일체 빼버리고 신속하고 거친 묘사로 사실만을 쌓아 올리는 하드보일드문학을 
            대표하는 작가이다. 1953년 퓰리처상을 받고 1954년 노벨문학상을 
            받았다.</q>        
    </body>
</html>
cs


축약어, 두문자어

- abbr : 축약어. 낱말 혹은 문장의 길이를 줄이기 위하여 정상적인 표기의 일부분을 생략시킨 형태의 표기.

............ A.M.: Ante Meridiem (오전)

............ WHO : World Health Organization (세계보건기구)


- acronym : 두문자어. 낱말의 머리글자를 모아서 만든 준말.  

............. RAM : Random Access Memory (메모리)

............. TOEFL : Test Of English as a Foreign Language (토플)



추가글, 삭제글

- ins : 추가글

- del : 삭제글



첨자

- sup : 윗첨자

- sub : 아래첨자


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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>축약어 두문자어</title>
    </head>
    <body>
        <h1>축약어 abbr</h1>
        <abbr title="World Health Organization">WHO</abbr> 세계보건기구
 
        <h1>두문자어 acronym</h1>
        <acronym title="Random Access Memory">RAM</acronym> 램 메모리
 
        <h1>추가글 ins 삭제글 del</h1>
        <dl>
            <dt>상품</dt>
            <dd>판매가 : <del>5000원</del></dd>
            <dd>할인가 : <ins>4000원</ins></dd>
        </dl>
 
        <h1>윗첨자 sup 아래첨자 sub</h1>
        <p>x<sup>2</sup></p>
        <p>H<sub>2</sub></p>
    </body>
</html>
cs









'XHTML | CSS2' 카테고리의 다른 글

목록 요소 (ul, ol, dl)  (0) 2018.10.19
css2.1 Full property table  (0) 2018.10.09
img 요소  (0) 2018.10.08
table 만들기  (0) 2018.10.07
html, css 기본  (0) 2018.10.07
posted by 해에게서소년에게
2018. 10. 19. 13:01 XHTML | CSS2

ul : unordered list

ol : ordered list

dl : description list

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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>Document</title>
    </head>
    <body>
        <ul>
            <li><a href="#">메뉴1</a></li>
            <li><a href="#">메뉴2</a></li>
            <li><a href="#">메뉴3</a></li>
        </ul>
        <ol>
            <li><a href="#">순서1</a></li>
            <li><a href="#">순서2</a></li>
            <li><a href="#">순서3</a></li>
        </ol>
        <dl>
            <dt>제목1</dt>
            <dd>설명1</dd>
            <dt>제목2</dt>
            <dd>설명2</dd>
        </dl>
    </body>
</html>
cs


'XHTML | CSS2' 카테고리의 다른 글

텍스트 요소  (0) 2018.10.19
css2.1 Full property table  (0) 2018.10.09
img 요소  (0) 2018.10.08
table 만들기  (0) 2018.10.07
html, css 기본  (0) 2018.10.07
posted by 해에게서소년에게
2018. 10. 19. 12:40 HTML5 | CSS3

이미지맵

shape : circle, rect, poly

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
<!doctype html>
<html lang="ko">
    <head>
        <title>이미지맵</title>
        <meta charset="utf-8">
    </head>
    <body>
        <img src="http://allwinz.com/img/main_img_1.png" alt="e모든창호" usemap="#imageMap">
        <map name="imageMap">
            <!-- 
                원형영역 
                shape="circle"
                coords="중심점 x, 중심점 y, 반경 r"
             -->
            <area shape="circle" coords="186, 268, 110" 
            href="http://allwinz.com/bbs/board.php?bo_table=notice" target="_blank" alt="공지사항">
            <!-- 
                사각형 영역 
                shape="rect"
                coords="좌측상단 x, 좌측상단 y, 우측하단 x, 우측하단 y"
             -->
            <area shape="rect" coords="38, 408, 340 467" 
            href="http://allwinz.com/bbs/content.php?co_id=company" target="_blank" alt="회사소개">            
            <!-- 
                다각형 영역 
                shape="poly"
                coords="꼭지점 x, 꼭지점 y, 꼭지점 x, 꼭지점 y, 꼭지점 x, 꼭지점 y,..."
             -->
            <area shape="poly" coords="400, 326, 557, 297, 554, 232, 643, 233, 644, 299, 
            847, 317, 847, 457, 397, 453, 400, 326" href="https://blog.naver.com/tmzlf01" 
            target="_blank" alt="블로그">
        </map>
    </body>
</html>
cs


이미지맵

'HTML5 | CSS3' 카테고리의 다른 글

html5 새로운 input 요소  (0) 2018.10.08
html css 공부하기 유용한 사이트  (0) 2018.10.07
posted by 해에게서소년에게
2018. 10. 18. 07:00 php

https://www.apachefriends.org


xampp 다운로드 및 설치.

Apache, MySQL, PHP, phpMyAdmin만 설치하면 됨.




posted by 해에게서소년에게
2018. 10. 15. 01:59 javascript

제어문

해당 언어를 보다 효율적으로 사용할 수 있도록 하는 문장

- 조건문, 반복문


조건문

 


if

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <title>조건문 if</title>
        <script>
            var a = 10;
            if (a > 5) {
                document.write("10 > 5");
            }
        </script>
    </head>
    <body>      
    </body>
</html>
cs


if - else

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <title>조건문 if-else</title>
        <script>
            var a = 1;
            if (a > 5) {
                document.write(a + " > 5");
            }           
            else {
                document.write(a + " < 5");                
            }
        </script>
    </head>
    <body>      
    </body>
</html>
cs


if - else if - else

 
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
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <title>조건문 if-else if-else</title>
        <script>
            var a = 2;
            if (a < 5) {
                document.write(a + " < 5");
            }           
            else if (a > 3) {
                document.write(a + " > 3");                
            }
            else if (a == 2) { 
                // 위에 (a < 5) 기준을 먼저 만족하여 이 구문은 실행안됨.
                document.write(a);                
            }
            else {
                document.write(a);                
            }
        </script>
    </head>
    <body>      
    </body>
</html>
cs


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
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <title>숫자 맞추기</title>
        <script>
            var computerNumber = 4;        // 정답
            var nGuesses = 0;                // 추측 횟수
 
            function guess() {
                var result = "";        // 결과 메시지
 
                // 사용자가 입력한 값을 받아서 변수 number에 대입한다. 
                var number = parseInt(document.getElementById("user").value);
                nGuesses++;                    // 추측 횟수를 증가시킨다. 
 
                if (number == computerNumber) result = "성공입니다.";
                else if (number < computerNumber) result = "낮습니다.";
                else result = "높습니다.";
 
                document.getElementById("result").value = result;
                document.getElementById("guesses").value = nGuesses;
                return true;
            }
        </script>
    </head>
    <body>     
         숫자를 맞추세요.<br>(숫자는 1부터 10 사이에 있습니다.)<br><br>
        <form>
            <label for="user">숫자 : </label>
            <input type="text" id="user" size="5">
            <input type="button" value="확인" onclick="guess();"><br>
            <label for="guesses">추측횟수 : </label>
            <input type="text" id="guesses" size="5"><br>
            <label for="result">힌트 : </label>
            <input type="text" id="result" size="16">
        </form>  
    </body>
</html>
cs


switch

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <title>switch</title>
        <script>
            var a = 3;
            switch (a) {
                case 2 : alert("a=2");
                    break;
                case 3 : alert("a=3");  
                    break;
                case 4 : alert("a=4");
                    break;
                default : alert(a)
            }
        </script>
    </head>
    <body>      
    </body>
</html>
cs








posted by 해에게서소년에게
2018. 10. 14. 23:22 javascript

사용자 입력값 받기 : prompt()

string을 number로 변환 : parseInt()

number를 string으로 변환 : String()

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <title>자료형 변환</title>
        <script>
            var a, b, input1;
            input1 = prompt("Input number.");
            document.write("type of input1 : " + typeof input1 + "<br>");
            a = parseInt(input1);
            document.write("type of parseInt input1 : " + typeof a + "<br>");
            document.write("type of a : " + typeof a + "<br>");
            b = String(a);
            document.write("type of String b : " + typeof b + "<br>");
        </script>
    </head>
    <body>
    </body>
</html>
cs


javascript 에서 html 요소에 접근.

- id 속성 사용

- id가 "a"인 요소의 값을 리턴 : document.getElementById("a").value;

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
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <title>계산기1</title>
        <script>
            function calc() {
                var a = document.getElementById("a").value;
                var b = document.getElementById("b").value;
                var sum = parseInt(a) + parseInt(b);
                document.getElementById("sum").value = sum;
            }
        </script>
    </head>
    <body>
        <form method="post" action="">
            <label for="a" >숫자1</label>
            <input type="text" id="a" /><br>
            <label for="b" >숫자2</label>
            <input type="text" id="b" /><br>
            <input type="button" value="합계" onclick="calc();" />
            <input type="text" id="sum" />
        </form>
    </body>
</html>
cs


- 요소의 색상변경 예제

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <title>html요소 색상변경</title>
        <script>
            function changeRed() {
                a = document.getElementById("header");
                a.style.color = "red";
                a.style.background = "black";
            }
            function changeBlue() {
                a = document.getElementById("header");
                a.style.color = "blue";
                a.style.background = "yellow";
            }
        </script>
    </head>
    <body>
        <h1 id="header">Header</h1>
        <button type="button" onclick="changeRed();">색상변경</button>        
        <button type="button" onclick="changeBlue();">색상변경2</button>        
    </body>
</html>
cs


'javascript' 카테고리의 다른 글

javascript 조건문(conditional statement)  (0) 2018.10.15
javascript 기초(변수, 자료형, 연산자)  (0) 2018.10.14
javascript 삽입 위치  (0) 2018.10.14
posted by 해에게서소년에게
2018. 10. 14. 20:26 javascript

javascript 문장은 block { } 으로 묶을 수 있음

1
2
3
4
{
    document.write("자바스크립트 기초");
    document.write("<h1>자바스크립트 기초</h1>");    
}
cs

대소문자 구별

공백문자 무시


// 주석

/* 주석 */


변수

var x;

x=10;

- 문자로 시작 (숫자시작 안됨)

- $, _ 로 시작 가능

- 대소문자 구별

- 자료형 없이 변수선언. 자료형은 값이 입력될 때 자동으로 결정됨.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <title>자바스크립트 변수선언</title>
        <script>
            document.write("***변수선언 후 변수에 값 입력<br>");
            var x;
            x = "자바스크립트";
            document.write(x + "<br><br>");
 
            document.write("***변수선언하면서 동시에 변수에 값 입력<br>");
            var x = 10;
            document.write(x + "<br><br>");
 
            document.write("***한줄에 여러개의 변수선언 및 값 입력<br>");
            var a = "javascript", b = 10000, c = "기초";
            document.write(a + "<br>" + b + "<br>" + c + "<br>");
        </script>
    </head>
    <body>
        <button type="button" onclick="alert('자바스크립트 기초')">클릭</button>
    </body>
</html>
cs


자료형

- number : 정수, 실수

- string : 문자, 텍스트

- boolean : true, false

- object : 객체

- undefined : 값이 정의 안된 상태

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
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <title>자바스크립트 자료형</title>
        <script>
            document.write("*** number 자료형<br>");            
            var a = 12345.0;    // 실수
            var b = 12345;      // 정수
            var c = 123e5;      // 12300000
            var d = 123e-5;     // 0.00123
            document.write("typeof a : " + typeof a + "<br>");
            document.write(a + "<br>" + b + "<br>" + c + "<br>" + d + "<br><br>");
            
            document.write("*** string 자료형<br>");            
            var a = "abcdefghijklmnopqrstuvwxyz";    // string
            var b = " 알파벳"
            document.write("typeof a : " + typeof a + "<br>");
            document.write("a + b : " + a + b + "<br>");
            document.write("a.length : " + a.length + "<br>");
            document.write("a.toUpperCase : " + a.toUpperCase() + "<br>");
            document.write("a.replace : " + a.replace("b""BB"+ "<br>");
            document.write("a.charAt(7) : " + a.charAt(7+ "<br><br>");
            
            document.write("*** boolean 자료형<br>");            
            var a = (100 > 1);  // true
            var b = (100 < 1);  // false
            document.write("typeof a : " + typeof a + "<br>");
            document.write(a + "<br>" + b + "<br><br>");
            
            document.write("*** object 자료형<br>");            
            var a = { name"apple", color: "red", price: 1000 }; // 속성, 동작을 묶어서 지정 
            document.write("typeof a : " + typeof a + "<br>"); 
            document.write("이름 : " + a.name + "<br>");
            document.write("색상 : " + a.color + "<br>");
            document.write("가격 : " + a.price + "<br><br>");
            
            document.write("*** undefined 자료형<br>");            
            var x;              // 변수값 미지정
            document.write("typeof x : " + typeof x + "<br>");
            document.write(x + "<br><br>");           
        </script>
    </head>
    <body>
        <button type="button" onclick="alert('자바스크립트 기초')">클릭</button>
    </body>
</html>
cs


연산자

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
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <title>자바스크립트 산술 연산자</title>
        <script>
            var a = 1000, b = 5.3, c = 100, d=10, e, f=100;
            document.write("a + b = "+ (a+b) + "<br>");
            document.write("a - b = "+ (a-b) + "<br>");
            document.write("a * b = "+ (a*b) + "<br>");
            document.write("a / b = "+ (a/b) + "<br>");
            document.write("a % b = "+ (a%b) + "<br><br>");
            document.write("++c = "+ (++c) + "<br>");
            document.write("--c = "+ (--c) + "<br><br>");
            // ++d 는 d의 값을 1증가 후 사용
            // d++ 은 d의 값 사용 후 1증가
            document.write("[e = d++] : e = "+ (e=d+++ "<br>");
            document.write("d = "+ d + "<br><br>");
            document.write("[e = ++f] : e = "+ (e=++f) + "<br>");
            document.write("f = "+ f + "<br><br>");   
        </script>
    </head>
    <body>
        <button type="button" onclick="alert('자바스크립트 기초')">클릭</button>
    </body>
</html>
cs

ps. 문자열에서는 +가 문자열의 결합


2) 대입 연산자

a += b; 는 a = a + b; 와 같다 

a -= b; 는 a = a - b; 와 같다 

a *= b; 는 a = a * b; 와 같다 

a /= b; 는 a = a / b; 와 같다 

a %= b; 는 a = a % b; 와 같다 


3) 비교 연산자

논리문에서 값을 비교하여 true, false 출력

== : 값이 같을 때 true, 아니면 false

=== : 값, 자료형 모두 같을 때 true, 아니면 false

!= : 값이 다를 때 true, 아니면 false

!== : 값, 자료형 모두 다를 때 true, 아니면 false

> : 클때 true, 아니면 false

< : 작을 때 true, 아니면 false

>= :크거나 같을 때 true, 아니면 false

<= : 크거나 같을 때 true, 아니면 false

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <title>자바스크립트 비교 연산자</title>
        <script>
            var a = 100, b = 200, c = "100";
            document.write("a == b : " + (a==b) + "<br>");
            document.write("a != b : " + (a!=b) + "<br>");
            document.write("a === c : " + (a===c) + "<br>");
            document.write("a !== c : " + (a!==c) + "<br>");
            document.write("a < b : " + (a<b) + "<br>");
            document.write("a > b : " + (a>b) + "<br>");
            document.write("a >= b : " + (a>=b) + "<br>");
            document.write("a <= b : " + (a<=b) + "<br>");            
        </script>
    </head>
    <body>
        <button type="button" onclick="alert('자바스크립트 기초')">클릭</button>
    </body>
</html>
cs


4) 논리 연산자

여러개의 조건을 조합하여 true, false 리턴.

a && b : a, b 모두 true이면 true, 아니면 false

a || b : a, b 중 한개라도 true이면 true, 아니면 false

!a : a가 true이면 false, 아니면 true

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <title>자바스크립트 논리 연산자</title>
        <script>
            var a = 100, b = 200;
            document.write("(a==100)&&(b==200) : " + ((a==100)&&(b==200)) + "<br>");
            document.write("(a==100)&&(b==500) : " + ((a==100)&&(b==500)) + "<br>");
            document.write("(a==100)||(b==500) : " + ((a==100)||(b==500)) + "<br>");
            document.write("(a==500)||(b==500) : " + ((a==500)||(b==500)) + "<br>");
            document.write("!(a==500)||(b==500) : " + !((a==500)||(b==500)) + "<br>");
        </script>
    </head>
    <body>
        <button type="button" onclick="alert('자바스크립트 기초')">클릭</button>
    </body>
</html>
cs


5) 조건 연산자

(조건) ? 실행문1 : 실행문2;

조건이 true 이면 ? 실행문1 실행 : 

조건이 false 이면 ? 실행문2 실행 ;

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <title>자바스크립트 조건 연산자</title>
        <script>
            var a = 100, b;
            b = (a > 10) ? "100이상" : "100이하"
            document.write(b);
        </script>
    </head>
    <body>
        <button type="button" onclick="alert('자바스크립트 기초')">클릭</button>
    </body>
</html>
cs


6) 연산자 우선순위

우선순위 높은 연산자순. 우선순위 높은 연산자일수록 먼저 실행.

3 + 4 * 5 = 23


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
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <title>자바스크립트 연산자 우선순위</title>
        <script>
            var result = 78 * 96 + 3;
            document.write(result);
            document.write("<br/>");
            // Output:
            // 7491
            result = 78 * (9 + 3);
            document.write(result);
            document.write("<br/>");
            // Output:
            // 936
            var num = 10;
            if(5 == num / 2 && (2 + 2 * num).toString() === "22") {
                document.write(true);
            }
            // Output:
            // true
        </script>
    </head>
    <body>
    </body>
</html>
cs


javascript 기초.

'javascript' 카테고리의 다른 글

javascript 조건문(conditional statement)  (0) 2018.10.15
javascript 기초2(자료형 변환, html요소 접근)  (0) 2018.10.14
javascript 삽입 위치  (0) 2018.10.14
posted by 해에게서소년에게
2018. 10. 14. 18:41 javascript

javascript는 css처럼 3가지 방법으로 html 문서에 삽입.


1) 내부 자바스크립트

<head>, <body> 안에~ ( <head>안에 넣는 것이 좋음. )

<script></script> 태그 사이에 위치.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE HTML>
<html>
    <head lang="ko">
        <meta charset="utf-8">
        <title>My First Javascript </title>
        <script>
            document.write("자바스크립트 기초");
            document.write("<h1>자바스크립트 기초</h1>");
        </script>
    </head>
    <body>
        <script>
            document.write("자바스크립트 기초");
            document.write("<h1>자바스크립트 기초</h1>");
        </script>
    </body>
</html>
cs


html5 이전에는 <script type="text/javascript>처럼 어떤 스크립트 언어를 사용하는지 표기했지만,

html5 부터는 javascript가 공식 스크립트 언어이므로 표기 안해도 됨.


예전에는 javascript 미지원 브라우저가 많아서 javascript 코드 부분을 html 주석으로 감싸기고 했지만, 

이제 주석처리 안해도 됨.



2) 외부 자바스트립트

<head>, <body> 안에~

<script src="ext-js.js"></script> 와 같이 src 속성의 값에 .js파일의 경로 기재.

html

 ext-js.js

1
2
3
4
5
6
7
8
9
10
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <title>외부 자바스크립트</title>
        <script src="ext-js.js"></script>
    </head>
    <body>
    </body>
</html>
cs
1
document.write("자바스크립트 기초");
cs



3) 인라인 자바스크립트

html 내부 태그에 이벤트 속성으로 삽입.

1
2
3
4
5
6
7
8
9
10
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <title>인라인 자바스크립트</title>
    </head>
    <body>
        <button type="button" onclick="alert('자바스크립트 기초')">클릭</button>
    </body>
</html>
cs



posted by 해에게서소년에게
2018. 10. 9. 18:18 XHTML | CSS2

This appendix is informative, not normative.

NameValuesInitial valueApplies to
(Default: all)
Inherited?Percentages
(Default: N/A)
Media groups
'azimuth'<angle> | [[ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards | inheritcenter yes aural
'background-attachment'scroll | fixed | inheritscroll no visual
'background-color'<color> | transparent | inherittransparent no visual
'background-image'<uri> | none | inheritnone no visual
'background-position'[ [ <percentage> | <length> | left | center | right ] [ <percentage> | <length> | top | center | bottom ]? ] | [ [ left | center | right ] || [ top | center | bottom ] ] | inherit0% 0% norefer to the size of the box itselfvisual
'background-repeat'repeat | repeat-x | repeat-y | no-repeat | inheritrepeat no visual
'background'['background-color' || 'background-image' || 'background-repeat' || 'background-attachment' || 'background-position'] | inheritsee individual properties noallowed on 'background-position'visual
'border-collapse'collapse | separate | inheritseparate'table' and 'inline-table' elementsyes visual
'border-color'<color> | transparent ]{1,4} | inheritsee individual properties no visual
'border-spacing'<length> <length>? | inherit0'table' and 'inline-table' elements yes visual
'border-style'<border-style>{1,4} | inheritsee individual properties no visual
'border-top' 'border-right''border-bottom' 'border-left'<border-width> || <border-style> || 'border-top-color' ] | inheritsee individual properties no visual
'border-top-color' 'border-right-color' 'border-bottom-color''border-left-color'<color> | transparent | inheritthe value of the 'color' property no visual
'border-top-style' 'border-right-style' 'border-bottom-style''border-left-style'<border-style> | inheritnone no visual
'border-top-width' 'border-right-width' 'border-bottom-width''border-left-width'<border-width> | inheritmedium no visual
'border-width'<border-width>{1,4} | inheritsee individual properties no visual
'border'<border-width> || <border-style> || 'border-top-color' ] | inheritsee individual properties no visual
'bottom'<length> | <percentage> | auto | inheritautopositioned elementsnorefer to height of containing blockvisual
'caption-side'top | bottom | inherittop'table-caption' elementsyes visual
'clear'none | left | right | both | inheritnoneblock-level elementsno visual
'clip'<shape> | auto | inheritautoabsolutely positioned elementsno visual
'color'<color> | inheritdepends on user agent yes visual
'content'normal | none | [ <string> | <uri> | <counter> | attr(<identifier>) | open-quote | close-quote | no-open-quote | no-close-quote ]+ | inheritnormal:before and :after pseudo-elementsno all
'counter-increment'<identifier> <integer>? ]+ | none | inheritnone no all
'counter-reset'<identifier> <integer>? ]+ | none | inheritnone no all
'cue-after'<uri> | none | inheritnone no aural
'cue-before'<uri> | none | inheritnone no aural
'cue''cue-before' || 'cue-after' ] | inheritsee individual properties no aural
'cursor'[ [<uri> ,]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize | text | wait | help | progress ] ] | inheritauto yes visualinteractive
'direction'ltr | rtl | inheritltrall elements, but see proseyes visual
'display'inline | block | list-item | inline-block | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | none | inheritinline no all
'elevation'<angle> | below | level | above | higher | lower | inheritlevel yes aural
'empty-cells'show | hide | inheritshow'table-cell' elementsyes visual
'float'left | right | none | inheritnoneall, but see 9.7no visual
'font-family'[[ <family-name> | <generic-family> ] [, <family-name><generic-family>]* ] | inheritdepends on user agent yes visual
'font-size'<absolute-size> | <relative-size> | <length> | <percentage> | inheritmedium yesrefer to inherited font sizevisual
'font-style'normal | italic | oblique | inheritnormal yes visual
'font-variant'normal | small-caps | inheritnormal yes visual
'font-weight'normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inheritnormal yes visual
'font'[ [ 'font-style' || 'font-variant' || 'font-weight' ]? 'font-size' [ / 'line-height' ]? 'font-family' ] | caption | icon | menu | message-box | small-caption | status-bar | inheritsee individual properties yessee individual propertiesvisual
'height'<length> | <percentage> | auto | inheritautoall elements but non-replaced inline elements, table columns, and column groupsnosee prosevisual
'left'<length> | <percentage> | auto | inheritautopositioned elementsnorefer to width of containing blockvisual
'letter-spacing'normal | <length> | inheritnormal yes visual
'line-height'normal | <number> | <length> | <percentage> | inheritnormal yesrefer to the font size of the element itselfvisual
'list-style-image'<uri> | none | inheritnoneelements with 'display: list-item'yes visual
'list-style-position'inside | outside | inheritoutsideelements with 'display: list-item'yes visual
'list-style-type'disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | armenian | georgian | lower-alpha | upper-alpha | none | inheritdiscelements with 'display: list-item'yes visual
'list-style''list-style-type' || 'list-style-position' || 'list-style-image' ] | inheritsee individual propertieselements with 'display: list-item'yes visual
'margin-right' 'margin-left'<margin-width> | inherit0all elements except elements with table display types other than table-caption, table and inline-tablenorefer to width of containing blockvisual
'margin-top' 'margin-bottom'<margin-width> | inherit0all elements except elements with table display types other than table-caption, table and inline-tablenorefer to width of containing blockvisual
'margin'<margin-width>{1,4} | inheritsee individual propertiesall elements except elements with table display types other than table-caption, table and inline-tablenorefer to width of containing blockvisual
'max-height'<length> | <percentage> | none | inheritnoneall elements but non-replaced inline elements, table columns, and column groupsnosee prosevisual
'max-width'<length> | <percentage> | none | inheritnoneall elements but non-replaced inline elements, table rows, and row groupsnorefer to width of containing blockvisual
'min-height'<length> | <percentage> | inherit0all elements but non-replaced inline elements, table columns, and column groupsnosee prosevisual
'min-width'<length> | <percentage> | inherit0all elements but non-replaced inline elements, table rows, and row groupsnorefer to width of containing blockvisual
'orphans'<integer> | inherit2block container elementsyes visualpaged
'outline-color'<color> | invert | inheritinvert no visualinteractive
'outline-style'<border-style> | inheritnone no visualinteractive
'outline-width'<border-width> | inheritmedium no visualinteractive
'outline''outline-color' || 'outline-style' || 'outline-width' ] | inheritsee individual properties no visualinteractive
'overflow'visible | hidden | scroll | auto | inheritvisibleblock containersno visual
'padding-top' 'padding-right''padding-bottom' 'padding-left'<padding-width> | inherit0all elements except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-columnnorefer to width of containing blockvisual
'padding'<padding-width>{1,4} | inheritsee individual propertiesall elements except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-columnnorefer to width of containing blockvisual
'page-break-after'auto | always | avoid | left | right | inheritautoblock-level elements (but see text)no visualpaged
'page-break-before'auto | always | avoid | left | right | inheritautoblock-level elements (but see text)no visualpaged
'page-break-inside'avoid | auto | inheritautoblock-level elements (but see text)no visualpaged
'pause-after'<time> | <percentage> | inherit0 nosee proseaural
'pause-before'<time> | <percentage> | inherit0 nosee proseaural
'pause'[ [<time> | <percentage>]{1,2} ] | inheritsee individual properties nosee descriptions of 'pause-before' and 'pause-after'aural
'pitch-range'<number> | inherit50 yes aural
'pitch'<frequency> | x-low | low | medium | high | x-high | inheritmedium yes aural
'play-during'<uri> [ mix || repeat ]? | auto | none | inheritauto no aural
'position'static | relative | absolute | fixed | inheritstatic no visual
'quotes'[<string> <string>]+ | none | inheritdepends on user agent yes visual
'richness'<number> | inherit50 yes aural
'right'<length> | <percentage> | auto | inheritautopositioned elementsnorefer to width of containing blockvisual
'speak-header'once | always | inheritonceelements that have table header informationyes aural
'speak-numeral'digits | continuous | inheritcontinuous yes aural
'speak-punctuation'code | none | inheritnone yes aural
'speak'normal | none | spell-out | inheritnormal yes aural
'speech-rate'<number> | x-slow | slow | medium | fast | x-fast | faster | slower | inheritmedium yes aural
'stress'<number> | inherit50 yes aural
'table-layout'auto | fixed | inheritauto'table' and 'inline-table' elementsno visual
'text-align'left | right | center | justify | inherita nameless value that acts as 'left' if 'direction' is 'ltr', 'right' if 'direction' is 'rtl'block containersyes visual
'text-decoration'none | [ underline || overline || line-through || blink ] | inheritnone no (see prose) visual
'text-indent'<length> | <percentage> | inherit0block containersyesrefer to width of containing blockvisual
'text-transform'capitalize | uppercase | lowercase | none | inheritnone yes visual
'top'<length> | <percentage> | auto | inheritautopositioned elementsnorefer to height of containing blockvisual
'unicode-bidi'normal | embed | bidi-override | inheritnormalall elements, but see proseno visual
'vertical-align'baseline | sub | super | top | text-top | middle | bottom | text-bottom | <percentage><length> | inheritbaselineinline-level and 'table-cell' elementsnorefer to the 'line-height' of the element itselfvisual
'visibility'visible | hidden | collapse | inheritvisible yes visual
'voice-family'[[<specific-voice> | <generic-voice> ],]* [<specific-voice> | <generic-voice> ] | inheritdepends on user agent yes aural
'volume'<number> | <percentage> | silent | x-soft | soft | medium | loud | x-loud | inheritmedium yesrefer to inherited valueaural
'white-space'normal | pre | nowrap | pre-wrap | pre-line | inheritnormal yes visual
'widows'<integer> | inherit2block container elementsyes visualpaged
'width'<length> | <percentage> | auto | inheritautoall elements but non-replaced inline elements, table rows, and row groupsnorefer to width of containing blockvisual
'word-spacing'normal | <length> | inheritnormal yes visual
'z-index'auto | <integer> | inheritautopositioned elementsno visual


'XHTML | CSS2' 카테고리의 다른 글

텍스트 요소  (0) 2018.10.19
목록 요소 (ul, ol, dl)  (0) 2018.10.19
img 요소  (0) 2018.10.08
table 만들기  (0) 2018.10.07
html, css 기본  (0) 2018.10.07
posted by 해에게서소년에게
2018. 10. 8. 18:52 XHTML | CSS2

img 요소

src : 이미지의 경로

alt : 이미지의 설명 (스크린리더기에서 설명이 읽힘)

width : 가로값

height : 세로값

title : 말풍선

절대경로 : root에서부터 경로를 찾음.

상대경로 : ./는 현재폴더, ../는 상위폴더

1
2
3
4
5
6
7
8
9
10
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>iframe</title>
    </head>
    <body>
        <img src="./exam_path/image-top.gif" alt="TOP 이미지" width="100" height="100" title="말풍선" />
    </body>
</html>
cs



'XHTML | CSS2' 카테고리의 다른 글

목록 요소 (ul, ol, dl)  (0) 2018.10.19
css2.1 Full property table  (0) 2018.10.09
table 만들기  (0) 2018.10.07
html, css 기본  (0) 2018.10.07
문서형 정의 및 선언(DTD), 네임스페이스, meta  (0) 2018.10.07
posted by 해에게서소년에게
2018. 10. 8. 14:39 HTML5 | CSS3

html5 새로운 input 요소

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
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <title>새로운 input</title>
    </head>   
    <body>
        <h1>새로운 input</h1>
        <form>
            <!-- 
            form 안에서 
                button type을 안적으면 type은 submit / 밖에서는 button
                input type 안적으면 type은 text
            -->
            <label for="userEmail">이메일</label>
            <input type=email id="userEmail">
            <button type="submit">이메일 전송</button> <br />            
        </form>
        <form>
            <label for="userNo">숫자</label>
            <input type="number" id="userNo" value="123" min="100" max="300">
            <button type="submit">숫자전송</button>
        </form>
        <form>
            <label for="userRange">범위</label>
            <input type="range" id="userRange">
            <button type="submit">범위전송</button>
        </form>
        <form>
            <label for="userSearch">검색</label>
            <input type="search" id="userSearch">
            <button type="submit">검색전송</button>
        </form>
        <!-- 입력창에 x (clear) 표시가 안나옴. -->
        <form role="search">
            <label for="userSearc-1">검색1</label>
            <input type="input" id="userSearch-1">
            <button type="submit">검색전송1</button>
        </form>
        <form>
            <!--
            ht:/aroomall.com 는 pass
            -->
            <label for="userUrl">URL</label>
            <input type="url" id="userUrl">
            <button trpe="submit">URL전송</button>
        </form>
    </body>
</html>
cs

html5 새로운 input 요소

유효성검사를 자동으로 해줌.

novalidate : 유효성 검사 안함.

*** xhtml에서는 novalidate="novalidate"로 기재


autofocus : 자동으로 focus 생김. 처음 기재한 1개만 적용.

*** xhtml에서는 autofocus="autofocus"로 기재

*** ios 상에서의 브라우저는 autofocus 적용이 안됨. 자바스크립트로도 안됨. 방법이 없음. auto...로 되어있는 것은 ios에서 거의 안됨.


disabled : 클릭, 입력, 체크, 전송이 안됨

*** xhtml에서는 disabled="disabled"로 기재

*** ie11에서는 disabled 적용됨. bug...


placeholder : 이정표, javasctipt를 대체. label을 대체할 수 없다. 웹접근성!

*** radio, checkbox에는 사용 안 함.

*** apple 사이트 search 칸을 보면 placeholder="Search apple.com" 이라는 문구 있음.

checked : 미리 체크함. checkbox, radio 모두 해당.

spellcheck="false"

autocomplete="off"

autocapitalize="off"

autocorrect="off"


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
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <title>새로운 input</title>
    </head>   
    <body>
        <h1>새로운 input</h1>
        <form novalidate
            
            <!-- 
            form 안에서 
                button type을 안적으면 type은 submit / 밖에서는 button
                input type 안적으면 type은 text
            -->
            <label for="userEmail">이메일</label>
            <input placeholder="example@example.com" type=email id="userEmail">
            <button disabled type="submit">이메일 전송</button> <br />            
        </form>
        <form>
            <label for="userNo">숫자</label>
            <input type="number" id="userNo" value="123" min="100" max="300">
            <button type="submit">숫자전송</button>
        </form>
        <form>
            <label for="userRange">범위</label>
            <input type="range" id="userRange">
            <button type="submit">범위전송</button>
        </form>
        <form>
            <label for="userSearch">검색</label>
            <input placeholder="검색어입력" type="search" id="userSearch">
            <button type="submit">검색전송</button>
        </form>
        <!-- 입력창에 x (clear) 표시가 안나옴. 강사님께서 사용하시는 방법 -->
        <form role="search">
            <label for="userSearch-1">검색1</label>
            <input autofocus type="text" id="userSearch-1">
            <button type="submit">검색전송1</button>
        </form>
        <form>
            <!--
            ht:/aroomall.com 는 pass
            -->
            <label for="userUrl">URL</label>
            <input autofocus type="url" id="userUrl">
            <button trpe="submit">URL전송</button>
        </form>
        <form>
            <label for="gender">여성</label>
            <input type="radio" id="gender-female" name="gender" value="female" checked>            
            <label for="gender">남성</label>
            <input type="radio" id="gender-male" name="gender" value="male">         
        </form>
        <form>
            <label for="fruit">과일</label>
            <input type="checkbox" checked id="banana" name="fruit" id="banana">
        </form>
    </body>
</html>
cs


'HTML5 | CSS3' 카테고리의 다른 글

이미지맵 (image map)  (0) 2018.10.19
html css 공부하기 유용한 사이트  (0) 2018.10.07
posted by 해에게서소년에게
2018. 10. 7. 22:15 XHTML | CSS2

table

tr : 행(row)

th : 제목셀(header cell)


td : 내용셀(data cell)


caption : 표 제목

thead : 헤더 행

tfoot : 푸터 행

tbody : 본문 행

col : 테이블의 열끼리 그룹화(스타일 지정 목적)

colgroup : 테이블의 열끼리 그룹화(논리적 그룹화 목적)


1
<table border="1" width="500" rules="groups" summary="html table 관련 요소의 설명입니다." >
cs

border 미지정시 테두리 안보임.

rules="groups" 선언시 colgroup, col을 통해 그룹지정한 열그룹 내부에는 테두리 표시안됨.


caption : 표 제목

summary : 표 내용 설명 (시각장애인이 summary 속성의 내용을 듣고 해당 테이블의 내용 파악한 후 건너뛸 것인지, 탐색할 것인지를 선택할 수 있음)


thead : header행

tfoot : footer행

tbody : body행

** thead, tfoot, tbody 순서

** 여러장 인쇄될 때 페이지마다 thead, tfoot 정보 인쇄가능.

** thead, tfoot에 table 주요내용이 요약되어 있으면, 시각장애인이 tbody의 내용을 일일이 읽지않아도 테이블 내용을 대략적으로 알 수도 있다.


일반인과 달리 시각장애인은 테이블 데이터의 행, 열, 셀 구분이 어렵다.

화면낭독기(스크린리더기)의 경우, 왼쪽에서 오른쪽으로 셀의 내용만 듣고 판단 -> 내용파악 어려움.


단순한 형태의 테이블의 경우,

th요소에 scope 속성, 값(col, row, rowgroup, colgroup) -> 해당 셀이 열의 제목인지 행의 제목인지 등을 알 수 있음.

*** scope 속성으로 열제목, 행제목 지정시, 스크린리더기에서 읽는 순서는 

*** 요소명 : tr -> 요소설명 : 행(row) -> 비고 : 한줄 차지함




복잡하게 병합된 셀의 경우,

*** th요소는 id 속성으로 네이밍하고

*** 해당 제목 셀과 연관성이 있는 내용 셀에 headers 속성과 id값을 연결하여 제목 셀과 내용 셀의 관계 지정 가능.


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
52
53
54
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>table</title>
        <style>
            * {
                margin: 0; padding: 0;
            }
            table {
                margin: 10px;
                text-align: center;
            }
        </style>
    </head>
    <body>
        <table border="1" width="500" rules="groups" summary="html table 관련 요소의 설명입니다." >
            <caption>HTML Table 만들기</caption>
            <colgroup span="2">
                <col id="tag_name">
                <col id="tag_description">                
            </colgroup>
            <col id="tag_etc">
            <thead>
                <tr>
                    <th scope="colgroup">요소명</th>
                    <th scope="colgroup">요소 설명</th>
                    <th scope="col">비고</th>
                </tr>    
            </thead>
            <tfoot>
                <tr>
                    <td colspan="3">2차원 표를 생성하는 테이블 관련 요소입니다.</td>
                </tr>    
            </tfoot>
            <tbody>
                <tr>
                    <th scope="row">tr</th>
                    <td>행(row)</td>
                    <td>한줄 차지함</td>
                </tr>    
                <tr>
                    <th scope="row">th</th>
                    <td>제목셀(header cell)</td>
                    <td rowspan="2">열(column)</td>
                </tr>    
                <tr>
                    <th scope="row">td</th>
                    <td>내용셀(data cell)</td>
                </tr>    
            </tbody>
        </table>
    </body>
</html>    
cs


'XHTML | CSS2' 카테고리의 다른 글

목록 요소 (ul, ol, dl)  (0) 2018.10.19
css2.1 Full property table  (0) 2018.10.09
img 요소  (0) 2018.10.08
html, css 기본  (0) 2018.10.07
문서형 정의 및 선언(DTD), 네임스페이스, meta  (0) 2018.10.07
posted by 해에게서소년에게
2018. 10. 7. 20:12 XHTML | CSS2

일부 내용은 비공개로 포스팅합니다.

기본 내용 위주로 공개 포스팅 진행합니다.


'XHTML | CSS2' 카테고리의 다른 글

목록 요소 (ul, ol, dl)  (0) 2018.10.19
css2.1 Full property table  (0) 2018.10.09
img 요소  (0) 2018.10.08
table 만들기  (0) 2018.10.07
문서형 정의 및 선언(DTD), 네임스페이스, meta  (0) 2018.10.07
posted by 해에게서소년에게
2018. 10. 7. 20:03 XHTML | CSS2
1
2
3
4
5
6
7
8
9
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title></title>
    </head>
    <body>
    </body>
</html>
cs


모든 웹문서의 시작은 문서형 선언(DTD)으로부터 시작함.

DTD선언은 HTML 문서의 첫줄에 위치.


XHTML은 HTML을 XML로 재정의한 언어이므로

XML이 가지는 확장성을 이용하여

다른 XML 형식의 문서표준을 네임스페이스(xmlns)를 이용하여 지원 가능.


문서정보와 문자코드세트(meta)

문자코드세트(인코딩) 선언값,

저작자,

키워드,

요약문, 등의 문서정보를 meta 태그를 이용하여 지정.


'XHTML | CSS2' 카테고리의 다른 글

목록 요소 (ul, ol, dl)  (0) 2018.10.19
css2.1 Full property table  (0) 2018.10.09
img 요소  (0) 2018.10.08
table 만들기  (0) 2018.10.07
html, css 기본  (0) 2018.10.07
posted by 해에게서소년에게
2018. 10. 7. 19:43 HTML5 | CSS3

'HTML5 | CSS3' 카테고리의 다른 글

이미지맵 (image map)  (0) 2018.10.19
html5 새로운 input 요소  (0) 2018.10.08
posted by 해에게서소년에게
2017. 8. 16. 16:26 TRAVEL | 여행

 

2017년 여름 휴가지로 선택한 홍콩-마카오 여행,

마카오 2일, 홍콩 1일 여행이니 마카오-홍콩 여행이 맞겠네요.

 

아무래도 갑작스런 여행이다보니 패키지가 저렴해서 노랑풍선 여행사를 통해 다녀왔습니다.

항공은 에어마카오, 작은 비행기였지만 서비스도 괜찮고 기내식도 맛있었습니다.

 

 

기내식에 김치가 있네요^^. 감자튀김, 스크램블 모두 맛있습니다.

여행의 재미중 하나는 기내식 아닌가 싶어요.


기내식에 빠지면 안되는 김치~~ 지금 안먹더라도 여행 중 먹을 수도 있고요^^.

 

 

 

공항은 좀 휑~ 한 분위기입니다.

 

마카오공항 1층에 음료 자판기가 있으나 잔돈이 없어서 구매불가였습니다.

 

대신 공항2층에 올라가면 편의점이 있네요.

다녀보니 마카오에는 7-일레븐 편의점이 독점인 듯 합니다.

 

 가이드 미팅 후 점심을 먹으러 이동..

 

그런데 패키지여행의 단점은 여행지에 가서도 한식을 먹어야 한다는 점ㅠㅠ

 

마카오에서 먹은 첫 끼.. 순두부찌개 입니다.

 


담엔 여유있게 알아봐서 꼭 자유여행 가야겠어요^^.


필리핀 보홀, 상해, 베트남 모두 자유여행으로 다녀와서,

맛집 찾아다니는 재미~ 가고싶은 곳만 골라서 다니는 재미~~가 있었는데~~


흠... 첫끼부터 맛없는 밥을 먹으니 기운이 뚝.....


물론, 맛이라도 있으면 한식도 좋지요^^.


홍콩/마카오는 아주 간단하게 느낀 점 위주로 포스팅을 이어가야 겠어요^^.


 


posted by 해에게서소년에게
2017. 6. 25. 14:45 REVIEW | 제품

인튜어스 프로 PTH-660P는 와콤(WACOM)에서 출시한 전문가용 태블릿 디지타이저입니다.

무엇보다 종이에 그려서 이미지나 벡터의 형태로 저장할 수 있다는 점이 큰 장점입니다.

 

우선 잉크스페이스 라이브모드로 간단한 드로잉을 해보았습니다.

 

 

<와콤 인튜어스 프로 개봉 사진>

박스에 두개의 박스가 들어있네요~

 

펜링의 색깔은 5가지 중 선택해서 끼울 수 있어요.

여러사람이 작업할 때 헷갈리지 않겠군요.

 

구성품을 모아서 사진을 찍어보았어요.

 

페이퍼에디션은 펜이 두개가 있어요.

종이에 그리는 잉크펜과 PTH-660P에 바로 그리는 뉴 와콤 프로 펜2 (New Wacom Pro Pen2).

 

뉴 와콤 프로 펜2 (New Wacom Pro Pen2)는

8,192 압력감지레벨에 무건전지 방식, 2개의 사이드 스위치의 스펙을 자랑하며,

펜 거치대에는 펠트심 4개와 표준 펜심 6개가 들어있습니다.

추가 옵션으로 구입한 드로잉 장갑..

 

파우치도 같이 구매했어요~

 

와콤펜이 아직 익숙하진 않지만, 꾸준히 연습해 봐야 겠습니다.

 

 

 

posted by 해에게서소년에게
2017. 6. 23. 15:01 FOOD | 맛집
오후 1시가 넘어 출출한 배를 부등켜안고 찾아간 자매순대국집.

 

맛은 있는데, 순대는 미니~

이렇게 가는 순대는 처음이네요..

 

 

 

 

 

 
posted by 해에게서소년에게
2017. 6. 23. 11:45 IT | 디지털

인터넷 익스플로어(익스플로러) ie11이 느릴때 멈출때 버벅일때가 많죠?

 

 

인터넷 옵션 설정으로 쉽게 이러한 문제를 해결할 수 있습니다.

 

 

인터넷 옵션 보안탭에서 "보호 모드 사용(Internet Explorer를 다시 시작해야 함"을 체크해제 하시고,

 

 

 

 

"고급 탭에서 GPU 렌더링 대신 소프트웨어 렌더링 사용"을 체크해제 하세요~

 

 

 

 

 

인터넷 익스플로어(익스플로러) ie11이 느림 멈춤 버벅임 현상이 많이 줄길 바라면서 포스팅을 마칩니다.

posted by 해에게서소년에게
2017. 6. 22. 12:08 ILLUSTRATOR

CMYK, RGB 칼라에 이어서 인쇄에 있어서 기본이 되는 팬톤 칼라(pantone color)에 대해 알아보겠습니다.

 

 

아래 사진에 보이는 것이 팬톤 칼라북 (pantone color book)입니다.

 

칼라칩이라고도 하고요~

 

 

- 코팅(solid coated), 무코팅(uncoated) 두가지로 나뉘어 있습니다.

 

 

실제로  팬톤 칼라북은 solid coated, uncoated 외에도 여러가지가 있는데,

 

패키지 디자인 / 인쇄 등 관련 업체에서 일하시는 분들은 solid coated / uncoated는 기본으로 가지고 계셔야 되지 않을까 싶습니다~.

 

 

사진을 보니 조금 낡긴 했네요~

 

그래도 다행히 속은 깨끗^^. 속까지 많이 헤지면 색상구분이 힘들기 때문에 새로 구입해야 합니다..

 

 

 

 

 

 

 

 

아래 그림에서 보시면 좌측이 코팅이 되어서 더 맨질맨질한 느낌,

 

우측이 코팅이 되지 않은 인쇄 색상 그대로의 느낌입니다.

 

어도비 일러스트레이터에서는 아래 그림과 같이 Windows 메뉴 - Swatch Libraries - Color Books 에서

 

팬톤 칼라 북을 선택할 수 있습니다.

 

 

 

 

 

여기서 PANTONE+ Solid Coated를 선택하면 아래 그림처럼 화면에 팬톤 칼라북이 표시됩니다.

 

object에 팬톤 칼라를 적용하는 방식은 object를 선택하신 후,

 

팬톤칼라를 클릭하여 색상을 지정하시면 되는데,

 

면(Fill)에 채워지는 색상과, 선(stroke) 색상은 color (F6) 패널에서 지정 후 적용하시면 됩니다.

 

 

 

 

 

 

posted by 해에게서소년에게
2017. 6. 22. 11:48 ILLUSTRATOR

오늘은 어도비 일러스트레이터에서 칼라 (color) 다루기에 대해 알아보겠습니다.

 

 

 

아래 그림에서 번 부분을 보시면, 일러스트레이터 화면 좌측 툴패널(tool panel)에 면 채우기 색상(Fill)선 색상(stroke)를 나타내는 그림이 보이고요,

 

 

일러스트레이터 화면 우측 패널(panel)에는 번처럼 파레트 모양의 color 설정하는 부분이 있습니다.

    

아래 그림에 보시면 CMYK / RGB 칼라로 색상이 표현되어 있는데,

 

    

☞ CMYK칼라 : Cyan(청록색), Magenta(심홍색), Yellow(노란색), K(검은색)의 4가지 색('원색'이라고 함)을 조합해서 색상을 표현/정의하는 방식.

  

   일반적으로 인쇄에서 많이 사용함.

 

☞ RGB칼라 : Red(빨간색), Green(녹색), Blue(파란색)의 3가지 색('빛의 3원색'이라고 함)으로 색상을 표현하는 방식

 

일반적으로 웹용이미지에서 많이 사용함.

 

 

 

번 영역을 클릭하면, 번과 같이 칼라모드를 선택할 수 있는 메뉴가 표시됩니다.

 

여기서 RGB, CMYK 칼라 모드를 선택할 수 있으며,

 

참고로, Grayscale은 K지수(K=0 이면 흰색, K=100 이면 검은색, 1~99까지는 회색의 짙은 정도)로 색을 표현/정의 합니다.

 

 

아래 그림은 녹색부분 면색상(Fill)이 R :1130, G :1201, B :124 로 정의되고,

 

붉은부분 선색상(Stroke)이 R :1211, G :1100, B :166 로 정의되어 있습니다.

 

 

일러스트레이터에서 그리거나 불러온 object를 선택하신 후 Color를 지정하거나,

 

Color를 지정한 후에 object를 그리셔도 됩니다.

 

 

 

 

만약 패널(panel)에서 color 아이콘이 안보인다면 Window 메뉴에서 Color를 선택하거나,

 

단축키 F6 을 누르시면 됩니다.

 

 

 

기본적인 칼라지정 방법에 대해 알아봤고요,

 

다음 포스팅에서는 팬톤 (pantone) 칼라에 대해 알아보겠습니다.

 

 

 

 

 

 

posted by 해에게서소년에게
2017. 6. 20. 14:20 FOOD | 맛집

우리 동네 과천 래미안슈르 아파트 상가에 있는 '60계 치킨' !

첫번째 사먹고 '맛있다!'
두번째 사먹고 '이건 올려야 돼!"
하면서 지금 포스팅을 해봅니다~~!

저와 와이프님 기준으로 과천에는 맛있는 치킨집이 하나 있었드랬죠~

그런데, 언제부터인가... gs슈퍼 앞에 새로 생긴 '60계 치킨'

 

 

 

 

 

 

전에 먹었던 것은 뼈치킨인데, 
순살치킨은 아무래도 먹기가 편하네요^^.
(1000원 비싸지만, 배달이 아닌 직접 찾아갈 때는 2000원 할인!!)

 

주문예약은 하되, 배달 보다는 직접 찾아가서 찾아오는 것(방문포장)을 추천합니다!! 2000원 할인해 주니깐요~~

 

간지치킨으로만 2번째 주문입니다.

한번은 뼈치킨, 한번은 순살치킨!

oo치킨은 간장소스치킨이 너무 짜서 안먹는데,
60계 치킨의 간지치킨은 간지나게 덜짜고 맛있다는 점!

 

평일은 낮2시~밤10시, 일요일은 낮12시~밤10시까지 입니다.

근래에 보기드문 솔직한 느낌의 치킨집이랍니다.

다음에 제가 주문해서 냠냠할 치킨은 고추치킨!

간장소스에 맵지않은 고추로 버무려 담백하고 깔끔한 맛이라는데,,,
몇일전 시식을 해봤거든요!!

다음엔 와이프님과 함께 고추치킨 함 먹어야 겠어요!!

 

 

 

posted by 해에게서소년에게
2017. 6. 20. 14:03 IT | 디지털

안드로이드 스마트폰 화면을 동영상으로 캡처하는 앱을 소개해 드립니다.

 

 

모비즌(mobizen)이라는 앱인데요~

 

무료입니다~~

 

 

 

먼저 모비즌을 설치하시고~

 

 

 

 

 

설치 후 아개 그림처럼 화면에 보이는

 

'm'이라고 쓰인 아이콘을 클릭합니다.

 

 

 

 

 

동영상 아이콘을 클릭하시면 화면 녹화가 시작됩니다.

 

 

 

 

 

화면 상단 바를 내리면 녹화정지가 가능합니다.

 

 

 

 

무료 앱이면서 이렇게 막강한 기능이 있다니 참 놀랍습니다^^.

 

 

posted by 해에게서소년에게
2017. 6. 20. 12:08 FOOD | 맛집

가평 맛집 옛골은 아침고요수목원 가는 길목에 위치한 맛집으로서,

 

곤드레 나물밥이 대표적인 메뉴입니다.

 

 

 

 

 

 

일요일 점심에 갔는데, 주차가 매우 힘듭니다.

 

주차장이 손님에 비해 협소한 것도 문제지만,

 

주차관리하시는 분이 체계적으로 먼저 들어온 차를 먼저 주차시키는 것이 아니라,

 

마구잡이로 주차를 시키더라고요ㅠㅠ 

 

주차공간이 없으면 주차장 입구부터 대기시켜야 하는데,

 

자리도 없는 주차장에 꾸역꾸역 밀어넣고 뒤에서 자리가 나면 새로 들어온 차가 주차하는...

 

 

 

다행히 곤드레 나물밥은 맛있습니다.

 

12000원 주고 먹기에 좀 비싼 감도 있지만, 유명하다고 하니 와서 먹다가는 것 같습니다^^.

 

 

 

 

 

 

 

 

 

 

posted by 해에게서소년에게
2017. 6. 19. 16:32 ILLUSTRATOR

안녕하세요, 오늘은 일러스트레이터 시작하기 동영상강좌 3편 - 기본 도형 그리기에 대해 알아보겠습니다.

 

아래 그림처럼 사각형, 모서리가 둥근 사각형, 원 등을 자유자래로 그려봅시다~

 

 

 

 

 

포스팅마다 지루하지 않도록 짤막짤막하게 동영상을 올립니다.

 

 

감사합니다.

 

 

 

 

posted by 해에게서소년에게
2017. 6. 19. 14:15 ILLUSTRATOR

안녕하세요, 오늘은 일러스트레이터 시작하기 동영상강좌 2편,


펜툴(Pen tool)을 이용하여 기본적인 path 그리기 입니다.

 

 

 

 

 

 

posted by 해에게서소년에게
2017. 6. 16. 19:52 ILLUSTRATOR

어도비 일러스트레이터 시작하기의 첫번째 동영상 강좌입니다.



앞선 포스팅 중 일러스트레이터의 화면구성과 뉴 도큐먼트(new document) 만들기에 대한 강의입니다.


 

 

각각의 이미지를 캡쳐해서 편집 후 블로그 글 올리는 것도 시간이 걸리지만,

동영상 녹화는 더 힘든 듯 하네요^^.

 

 

 

 

 

 

 

 

 

posted by 해에게서소년에게
2017. 6. 15. 16:27 LIFE | 정보

가족관계증명서를 발급하려니 민원24에서는 1,000원이네요ㅠㅠ

 

 

이럴땐, 주저하지 말고~

 

"대한민국 법원 전자가족관계등록시스템" 에서 무료로 발급 받으면 됩니다!

 

http://efamily.scourt.go.kr

 

 

 

 

아래 그림처럼, 좌측에 가족관계등록부 발급 을 누르면 신청화면으로 이동합니다.

 

설치된 프린터가 증명서 인쇄가능 프린터인지 확인 꼭 하시고요!

 

 

 

 

 

 

가족관계등록부 발급 을 누르면 아래 그림처럼 화면이 바뀌는데,

 

여기서 관계, 성명, 가족관계증명서를 선택, 주민등록번호 공개신청 여부, 신청사유를 입력하고 발급신청 하면 됩니다.

 

 

 

 

 

발급완료!!

 

 

 

 

 

 

 

posted by 해에게서소년에게
2017. 6. 15. 11:26 FOOD | 맛집

결혼기념일을 축하하기 위해 찾아간 이태원 꼭 가봐야할 맛집, 바토스 VATOS !



주말에는 사람이 많아서 많이 기다려야한다고 합니다.



VATOS 간판도 멋지게 달려있네요~~





주문 전에 기본으로 나오는 메뉴입니다.


칩(Chip)과 소스?






멕시코 음식 레스토랑답게 타코, 퀘사이아, 부리토가 메인음식입니다.






망고 쉬림프 퀘사디아 (Mango Shrimp Quesadilla)


인기있는 메뉴라고 하네요.


달콤한 망고의 맛과, 아보카도 등이 어우러진 보기드물게 맛있는 퀘사디아입니다.






실란트로 라임 치킨 부리토(Cilantro Lime Chicken)


맛있는 치킨볶음밥이에요~






칠리라임새우 타코(Chilli Lime Shrimp Taco)


멕시코 음식의 기본은 칩(chip)인가 봅니다.


칩 위에 야채와 새우, 토마토가 어우러진~~ 


바삭함 뒤에 오는 새우의 담백함이 기분을 좋게 하네요~~








무엇보다 바토스의 하이라이트는 


바토스 리타(Vatos' Rita)라고 하는 맥주음료입니다.




빨대로 빨아먹으면 맥주가 서서히 줄어들면서 맥주가 조금씩 잔에 채워집니다.


처음이라 신기하기도 하고,


맛도 아주 부드럽고 좋아요~^^.







posted by 해에게서소년에게
prev 1 2 3 4 5 next