0422
HTML
- HyperText Markup Language
* HyperText: 문서의 링크를 클릭하면 연결된 다른 문서로 이동할 수 있는 기능을 제공하는 텍스트
* Markup: 문서의 어느 부분이 제목이고, 어느 부분이 본문이고, 어느 부분이 링크인지를 표시하기 위해서 특별한 기호(마크업, 태그)이 사용된다.
- 웹에서 웹 문서간에 빠르게 이동할 수 있는 문서를 만들 때 사용되는 언어가 HTML이다.

태그
- 태그는 '<'와 '>'로 구성된다.
* <body> <img> <table> <ul><br> - 태그의 이름은 소문자로 적는다.<br> - 태그는 여는 태그와 닫는 태그가 쌍으로 구성된다.<br> * 여는 태그: <table> <body> <head> <script type="text/javascript">if (!window.T) { window.T = {} } window.T.config = {"TOP_SSL_URL":"https://www.tistory.com","PREVIEW":false,"ROLE":"guest","PREV_PAGE":"","NEXT_PAGE":"","BLOG":{"id":1777466,"name":"monkey-k777","title":"N의 창고","isDormancy":false,"nickName":"monkey-k777","status":"open","profileStatus":"normal"},"NEED_COMMENT_LOGIN":false,"COMMENT_LOGIN_CONFIRM_MESSAGE":"","LOGIN_URL":"https://www.tistory.com/auth/login/?redirectUrl=https://monkey-k777.tistory.com/category/html","DEFAULT_URL":"https://monkey-k777.tistory.com","USER":{"name":null,"homepage":null,"id":0,"profileImage":null},"SUBSCRIPTION":{"status":"none","isConnected":false,"isPending":false,"isWait":false,"isProcessing":false,"isNone":true},"IS_LOGIN":false,"HAS_BLOG":false,"IS_SUPPORT":false,"TOP_URL":"http://www.tistory.com","JOIN_URL":"https://www.tistory.com/member/join","ROLE_GROUP":"visitor"}; window.T.entryInfo = null; window.appInfo = {"domain":"tistory.com","topUrl":"https://www.tistory.com","loginUrl":"https://www.tistory.com/auth/login","logoutUrl":"https://www.tistory.com/auth/logout"}; window.initData = {}; window.TistoryBlog = { basePath: "", url: "https://monkey-k777.tistory.com", tistoryUrl: "https://monkey-k777.tistory.com", manageUrl: "https://monkey-k777.tistory.com/manage", token: "Hc/3EhvFmt5XsvJ8X6OR93J7+oShLGEilALNlF0FwbxwuLgJW1btiiChIUHonL7c" }; var servicePath = ""; var blogURL = "";</script> <br> * 닫는 태그: </table> <script type="text/javascript">(function($) { $(document).ready(function() { lightbox.options.fadeDuration = 200; lightbox.options.resizeDuration = 200; lightbox.options.wrapAround = false; lightbox.options.albumLabel = "%1 / %2"; }) })(tjQuery);</script> <div style="margin:0; padding:0; border:none; background:none; float:none; clear:none; z-index:0"></div> <script type="text/javascript" src="https://tistory1.daumcdn.net/tistory_admin/userblog/tistory-fda325030f650f8bb6efdfbc900c54d5af6cf662/static/script/common.js"></script> <script type="text/javascript">window.roosevelt_params_queue = window.roosevelt_params_queue || [{channel_id: 'dk', channel_label: '{tistory}'}]</script> <script type="text/javascript" src="//t1.daumcdn.net/midas/rt/dk_bt/roosevelt_dk_bt.js" async="async"></script> <script type="text/javascript" src="https://tistory1.daumcdn.net/tistory_admin/userblog/tistory-fda325030f650f8bb6efdfbc900c54d5af6cf662/static/script/menubar.min.js"></script> <script>window.tiara = {"svcDomain":"user.tistory.com","section":"기타","trackPage":"글뷰_보기","page":"글뷰","key":"1777466","customProps":{"userId":"0","blogId":"1777466","entryId":"null","role":"guest","trackPage":"글뷰_보기","filterTarget":false},"entry":null,"kakaoAppKey":"3e6ddd834b023f24221217e370daed18","appUserId":"null"}</script> <script type="module" src="https://t1.daumcdn.net/tistory_admin/frontend/tiara/v1.0.0/index.js"></script> <script src="https://t1.daumcdn.net/tistory_admin/frontend/tiara/v1.0.0/polyfills-legacy.min.js" nomodule="true" defer="true"></script> <script src="https://t1.daumcdn.net/tistory_admin/frontend/tiara/v1.0.0/index-legacy.js" nomodule="true" defer="true"></script> </body> <style type="text/css">.another_category { border: 1px solid #E5E5E5; padding: 10px 10px 5px; margin: 10px 0; clear: both; } .another_category h4 { font-size: 12px !important; margin: 0 !important; border-bottom: 1px solid #E5E5E5 !important; padding: 2px 0 6px !important; } .another_category h4 a { font-weight: bold !important; } .another_category table { table-layout: fixed; border-collapse: collapse; width: 100% !important; margin-top: 10px !important; } * html .another_category table { width: auto !important; } *:first-child + html .another_category table { width: auto !important; } .another_category th, .another_category td { padding: 0 0 4px !important; } .another_category th { text-align: left; font-size: 12px !important; font-weight: normal; word-break: break-all; overflow: hidden; line-height: 1.5; } .another_category td { text-align: right; width: 80px; font-size: 11px; } .another_category th a { font-weight: normal; text-decoration: none; border: none !important; } .another_category th a.current { font-weight: bold; text-decoration: none !important; border-bottom: 1px solid !important; } .another_category th span { font-weight: normal; text-decoration: none; font: 10px Tahoma, Sans-serif; border: none !important; } .another_category_color_gray, .another_category_color_gray h4 { border-color: #E5E5E5 !important; } .another_category_color_gray * { color: #909090 !important; } .another_category_color_gray th a.current { border-color: #909090 !important; } .another_category_color_gray h4, .another_category_color_gray h4 a { color: #737373 !important; } .another_category_color_red, .another_category_color_red h4 { border-color: #F6D4D3 !important; } .another_category_color_red * { color: #E86869 !important; } .another_category_color_red th a.current { border-color: #E86869 !important; } .another_category_color_red h4, .another_category_color_red h4 a { color: #ED0908 !important; } .another_category_color_green, .another_category_color_green h4 { border-color: #CCE7C8 !important; } .another_category_color_green * { color: #64C05B !important; } .another_category_color_green th a.current { border-color: #64C05B !important; } .another_category_color_green h4, .another_category_color_green h4 a { color: #3EA731 !important; } .another_category_color_blue, .another_category_color_blue h4 { border-color: #C8DAF2 !important; } .another_category_color_blue * { color: #477FD6 !important; } .another_category_color_blue th a.current { border-color: #477FD6 !important; } .another_category_color_blue h4, .another_category_color_blue h4 a { color: #1960CA !important; } .another_category_color_violet, .another_category_color_violet h4 { border-color: #E1CEEC !important; } .another_category_color_violet * { color: #9D64C5 !important; } .another_category_color_violet th a.current { border-color: #9D64C5 !important; } .another_category_color_violet h4, .another_category_color_violet h4 a { color: #7E2CB5 !important; } </style> <link rel="stylesheet" type="text/css" href="https://tistory1.daumcdn.net/tistory_admin/userblog/tistory-fda325030f650f8bb6efdfbc900c54d5af6cf662/static/style/revenue.css"/> <link rel="canonical" href="https://monkey-k777.tistory.com"/> <!-- BEGIN STRUCTURED_DATA --> <script type="application/ld+json"> {"@context":"http://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":0,"item":{"@id":"https://monkey-k777.tistory.com/124","name":"0422"}},{"@type":"ListItem","position":1,"item":{"@id":"https://monkey-k777.tistory.com/91","name":"sample19~27(div, span, id, class, form 등)"}},{"@type":"ListItem","position":2,"item":{"@id":"https://monkey-k777.tistory.com/90","name":"sample14~18(link, text, element)"}},{"@type":"ListItem","position":3,"item":{"@id":"https://monkey-k777.tistory.com/89","name":"sample8~13 (table, img)"}},{"@type":"ListItem","position":4,"item":{"@id":"https://monkey-k777.tistory.com/88","name":"sample1~7(title, text, list, table)"}}]} </script> <!-- END STRUCTURED_DATA --> <link rel="stylesheet" type="text/css" href="https://tistory1.daumcdn.net/tistory_admin/userblog/tistory-fda325030f650f8bb6efdfbc900c54d5af6cf662/static/style/dialog.css"/> <link rel="stylesheet" type="text/css" href="//t1.daumcdn.net/tistory_admin/www/style/top/font.css"/> <link rel="stylesheet" type="text/css" href="https://tistory1.daumcdn.net/tistory_admin/userblog/tistory-fda325030f650f8bb6efdfbc900c54d5af6cf662/static/style/postBtn.css"/> <link rel="stylesheet" type="text/css" href="https://tistory1.daumcdn.net/tistory_admin/userblog/tistory-fda325030f650f8bb6efdfbc900c54d5af6cf662/static/style/comment.css"/> <link rel="stylesheet" type="text/css" href="https://tistory1.daumcdn.net/tistory_admin/userblog/tistory-fda325030f650f8bb6efdfbc900c54d5af6cf662/static/style/tistory.css"/> <script type="text/javascript" src="https://tistory1.daumcdn.net/tistory_admin/userblog/tistory-fda325030f650f8bb6efdfbc900c54d5af6cf662/static/script/common.js"></script> <script type="text/javascript" src="https://tistory1.daumcdn.net/tistory_admin/userblog/tistory-fda325030f650f8bb6efdfbc900c54d5af6cf662/static/script/comment.js" defer=""></script> </head><br> - 여는 태그와 닫는 태그 사이에는 컨텐츠나 다른 태그가 포함될 수 있다.<br> * <h1>html 태그 연습</h1><br> * <p>html은 웹 문서를 만들 때 사용되는 언어다.</p><br> * <p><span>1위</span>방탄소년단</p><br> - 태그는 속성을 가질 수 있다.<br> * 속성은 속성명="속성값"으로 구성된다.<br> * <img src="images/cat.jpg" width="300" height="200" alt="예쁜 고양이"><br> - 태그간의 포함관계를 정확하게 표현해야 된다.<br> * <div><p>태그안에 다른 태그가 포함될 때는 여는 태그와 닫는 태그의 쌍을 맞춰야 한다.</p></div></p> <ul><li></li></ul> <p>html의 기본 구조<br><!doctype html></p> <html> <head> <script type="text/javascript">if (!window.T) { window.T = {} } window.T.config = {"TOP_SSL_URL":"https://www.tistory.com","PREVIEW":false,"ROLE":"guest","PREV_PAGE":"","NEXT_PAGE":"","BLOG":{"id":1777466,"name":"monkey-k777","title":"N의 창고","isDormancy":false,"nickName":"monkey-k777","status":"open","profileStatus":"normal"},"NEED_COMMENT_LOGIN":false,"COMMENT_LOGIN_CONFIRM_MESSAGE":"","LOGIN_URL":"https://www.tistory.com/auth/login/?redirectUrl=https://monkey-k777.tistory.com/category/html","DEFAULT_URL":"https://monkey-k777.tistory.com","USER":{"name":null,"homepage":null,"id":0,"profileImage":null},"SUBSCRIPTION":{"status":"none","isConnected":false,"isPending":false,"isWait":false,"isProcessing":false,"isNone":true},"IS_LOGIN":false,"HAS_BLOG":false,"IS_SUPPORT":false,"TOP_URL":"http://www.tistory.com","JOIN_URL":"https://www.tistory.com/member/join","ROLE_GROUP":"visitor"}; window.T.entryInfo = null; window.appInfo = {"domain":"tistory.com","topUrl":"https://www.tistory.com","loginUrl":"https://www.tistory.com/auth/login","logoutUrl":"https://www.tistory.com/auth/logout"}; window.initData = {}; window.TistoryBlog = { basePath: "", url: "https://monkey-k777.tistory.com", tistoryUrl: "https://monkey-k777.tistory.com", manageUrl: "https://monkey-k777.tistory.com/manage", token: "Hc/3EhvFmt5XsvJ8X6OR93J7+oShLGEilALNlF0FwbxwuLgJW1btiiChIUHonL7c" }; var servicePath = ""; var blogURL = "";</script> <meta charset="utf-8" /> <title>처음으로 작성하는 html 문서

문서의 제목을 포함한다.

내용을 포함한다.

* : 현재 문서가 html5 작성 규칙에 맞춰서 작성된 웹 문서임을 나타낸다. * ~ : 웹 문서의 시작과 끝을 나타낸다. * ~ : 웹브라우저가 웹 문서를 해석하는데 필요한 정보를 입력하는 부분이다. 이 부분에 있는 정보는 실제 문서 내용이 아니기 때문에 화면에 표시되지 않는다. * ~
: 실제로 웹 브라우저에 표시되는 내용을 포함한다. 우리가 배우는 거의 대부분의 태그는 태그 안에 들어간다. *
: 줄 바꾸기. 콘텐츠를 포함하지 않음. 열자마자 닫는다. 브라우저: html 문서 -> 파싱(해석) -> Document 객체 생성 -> 태그마다 엘리먼트 객체 생성 -> 렌더링 -> 화면에 표시

0423
블록 엘리먼트(block element)와 인라인 엘리먼트(inline element)
- html 태그(엘리먼트)는 블록 엘리먼트와 인라인 엘리먼트로 나뉜다.
- 블록 엘리먼트는 인라인 엘리먼트로, 인라인 엘리먼트는 블록 엘리먼트로 바꿀 수 있다.
- 블록 엘리먼트
- 언제나 새로운 줄에서 시작한다.
- 좌우 양쪽으로 최대한 늘어나 가능한 모든 너비를 차지한다.
- 폭을 지정할 수 있다.
- 블록 엘리먼트 내의 콘텐츠를 왼쪽/오른쪽/가운데 정렬시킬 수 있다.
- div, h1 ~ h6, p, table, ul, ol, li, dl, dt, dd, form
- 인라인 엘리먼트
- 콘텐츠의 흐름을 끊지 않는다.
- 새로운 줄을 만들지 않고, 콘텐츠가 필요한 너비만 차지한다.
- span, a, img, strong, em, input, select, textarea, label, button
* 인라인 엘리먼트는 단독으로 표시되지 않는다.
인라인 엘리먼트는 블록 엘리먼트 안에 있어야 된다.

div, span 엘리먼트
- 통용 컨테이너 태그(엘리먼트다).
- CSS로 꾸미기 전에는 콘텐츠나 레이아웃에 어떤 영향도 주지 않는다.
- div 태그
- 블록 엘리먼트다.
- div나 다른 블록 엘리먼트, 인라인 엘리먼트들을 콘텐츠로 가진다.
- 여러 엘리먼트(태그)를 묶어서 스타일의 지정을 돕는 용도로 사용된다.
- 여러 엘리먼트(태그)를 묶어서 특정 영역으로 구분하는 용도로 사용된다.
- span 태그
- 인라인 엘리먼트다.
- 텍스트 콘텐츠를 묶어서 스타일의 지정을 돕는 용도로 사용된다.

id, class 속성
- 모든 엘리먼트(태그)는 id속성과 class속성을 가질 수 있다.
- id 속성은 해당 엘리먼트(태그)를 다른 엘리먼트와 구별하기 위해서 사용한다.
* html문서 안에 동일한 id속성값을 갖는 엘리먼트가 없어야 한다.
* id 속성값으로 특수문자를 사용할 수 없다.("_"와 "-"는 사용가능하다.)
* id 속성값은 문자(영어 대소문자)와 숫자를 사용할 수 있고, 숫자로 시작할 수 없다.
- class 속성은 엘리먼트(태그)에 동일한 스타일을 적용할 목적으로 사용한다.
* html 문서 안에 동일한 스타일이 적용될 엘리먼트는 동일한 class 속성값을 가지게 한다.
* class 속성값은 하나 이상의 값을 가질 수 있다.



버튼을 생성할 때 사용한다.

- input 태그
    - type 속성값에 따라서 다양한 입력 콘트롤을 생성할 수 있다.
    - 주요 타입 속성
        type="hidden"       사용자에게 보이지 않는 필드를 만든다.
        type="text"          한 줄 입력 텍스트필드를 만든다.
        type="password"   비밀번호 입력필드를 만든다.
        type="date"         날짜 입력 필드를 만든다.
        type="time"         시간 입력 필드를 만든다.
        type="number"     숫자 입력 필드를 만든다.
        type="email"        이메일 입력 필드를 만든다.
        type="url"            url 입력 필드를 만든다.
        type="file"           파일을 첨부할 수 있는 필드를 만든다.
        type="checkbox"  주어진 항목을 2개 이상 선택할 수 있는 체크박스를 만든다.
        type="radio"         주어진 항목에서 하나만 선택할 수 있는 라디오버튼을 만든다.
        type="submit"       입력된 값을 서버로 제출하는 버튼을 만든다.
        type="reset"        폼의 입력값을 원래 상태로 되돌리는 버튼을 만든다.
        type="button"       버튼을 만든다.
    - 주요 속성
        - type 속성: 입력 콘트롤의 형식을 지정한다.
        - name 속성: 입력된 값을 서버로 전송할 때 사용된다(필수).
        - id 속성: 입력 콘트롤을 식별하기 위해서 사용된다.
        - readonly 속성: 읽기 전용 입력 콘트롤로 만든다. 값을 변경할 수 없다.
        - disabled 속성:입력 콘트롤을 비활성화 시킨다. 값을 변경할 수 없고, 해당 입력 콘트롤의 같은 서버로 전송되지 않는다.
        - placeholder: 입력값 힌트를 제공한다.
        - maxlength: 최대 입력 문자 개수를 지정한다.
        - value: 입력값을 지정한다.
        - checked: 라디오버튼, 체크박스를 미리 선택되게 한다.

- select 태그
    - 콤보박스 생성
    - 사용자가 값을 입력하는 대신 나열된 값 중에 하나를 선택하도록 하는 드롭다운 목록을 생성한다.
       <select name="서버에전달할이름">
           <option value="값1">내용</option>
           <option value="값2">내용</option>
           <option value="값3">내용</option>
           <option value="값4">내용</option>
       </select>
        * 서버에는 선택된 옵션의 value에 설정된 값이 전달된다. 내용이 전달되지 않는다.
        - option태그의 주요 속성
            value: 서버로 전달될 값을 설정한다.
            disabled: 해당 항목을 선택하지 못하게 한다.
            selected: 해당 항목이 미리 선택되어 있게 한다.

    - textarea 태그
        - 여러 줄을 입력할 수 있는 텍스트영역을 만든다.
        - 주요 속성
            rows: 텍스트 영역의 세로 길이(행의 길이)를 설정한다.
            cols: 텍스트 영역의 가로 길이(문자 길이)를 설정한다.

'html' 카테고리의 다른 글

sample19~27(div, span, id, class, form 등)  (0) 2019.06.09
sample14~18(link, text, element)  (0) 2019.06.09
sample8~13 (table, img)  (0) 2019.06.09
sample1~7(title, text, list, table)  (0) 2019.06.09

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        #news-section p {color: red;}
        #weather-section p {color: green;}
        #footer-section {
            background-color: #444;
            color: white;
            padding: 14px;
        }
    </style>
</head>
<body>
    <h1>div 태그 사용하기</h1>
    <div id="contents-section">
        <div id="news-section">
            <h2>뉴스 속보</h2>
            <p>중앙 HTA 이응수 강사가 워크넷 이벤트 응모에 당첨되었습니다.</p>
            <p>중앙 HTA 박수정 학생이 워크넷 이벤트에 아쉽게 탈락했습니다.</p>
        </div>

        <div id="weather-section">
            <h2>날씨 정보</h2>
            <p>오늘 서울의 날씨는 흐리고 차차 비가 오겠습니다.</p>
            <p>내일 서울의 날씨는 비 온 후 기온이 많이 떨어지겠습니다.</p>
        </div>
    </div>
    
    <div id="footer-section">
        <h3>중앙 HTA 방송국</h3>
        <p>주소: 서울특별시 종로구 봉익동 디아망 빌딩</p>
        <p>전화: 02-1234-5678</p>
    </div>
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        .up {color: red;}
        .down {color: blue;}
    </style>
</head>
<body>
    <h1>span 태그 사용하기</h1>
    
    <h2>주식 현황</h2>
    <p>셀트리온 <span class="up">+0.45%</span></p>
    <p>아시아나 항공 <span class="down">-5.97%</span></p>
    <p>에프로젠 KIC <span class="up">+12.52%</span></p>
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        .gallery {
            width: 400px;
            height: 400px;
        }
        .thumbnail {
            width: 120px;
            height: 120px;
            opacity: 0.3;
        }
        .highlight {
            opacity: 1;
        }
    </style>
</head>
<body>
    <h1>id와 class 속성 사용하기</h1>
    
    <h2>이미지 갤러리</h2>
    
    <div id="img-gallery-box">
        <img src="images/Chrysanthemum.jpg" class="gallery">
    </div>
    
    <div id="img-thumbnail-box">
        <img src="images/Chrysanthemum.jpg" class="thumbnail highlight">
        <img src="images/Desert.jpg" class="thumbnail">
        <img src="images/Hydrangeas.jpg" class="thumbnail">
        <img src="images/Jellyfish.jpg" class="thumbnail">
        <img src="images/Koala.jpg" class="thumbnail">
        <img src="images/Lighthouse.jpg" class="thumbnail">
        <img src="images/Penguins.jpg" class="thumbnail">
        <img src="images/Tulips.jpg" class="thumbnail">
    </div>
    
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
    <script>
        $(".thumbnail").click(function() {
            var imgPath = $(this).attr('src');
            $('.gallery:first').attr('src', imgPath);
            
            $('.thumbnail').siblings().removeClass("highlight");
            $(this).addClass('highlight');
        })
    </script>
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <h1>폼 요소 연습하기</h1>
    
    <h2>input 태그 연습하기</h2>
    <form>
        <label>숨김필드</label><input type="hidden" /><br />
        <label>이름</label><input type="text" /><br />
        <label>비밀번호</label><input type="password" /><br/>
        <label>생일</label><input type="date" /><br />
        <label>나이</label><input type="number" /><br />
        <label>프로필사진</label><input type="file" /><br />
        <label>성별</label><input type="radio" />남<input type="radio" />여<br />
        <label>관심분야</label><input type="checkbox" />영화
                              <input type="checkbox" />미술
                              <input type="checkbox" />운동
                              <input type="checkbox" />음악<br />
        <input type="submit" />
        <input type="reset" />
    </form>
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <h1>input 태그의 주요 속성 연습하기</h1>
    
    <form action="register.jsp">
        <label>value 속성</label><input type="text" name="nickname" value="홍길동" /><br />
        <label>placeholder 속성</label><input type="text" name="username" placeholder="이름을 입력하세요" /><br />
        <label>maxlength 속성</label><input type="text" name="address" maxlength=6 /><br />
        <label>readonly 속성</label><input type="text" name="phone" value="010-111-1111" readonly="readonly"/><br />
        <label>disabled 속성</label><input type="text" name="school" value="서울대학교" disabled="disabled"/><br />
        <label>name 속성</label><input type="text" name="userid" placeholder="아이디를 입력하세요" /><br />
        <label>name 속성</label><input type="date" name="birth" placeholder="생일을 입력하세요" /><br />
        
        <label>name 속성</label><input type="radio" name="gender" value="male" checked="checked">남
                                <input type="radio" name="gender" value="female">여<br>
        <label>name 속성</label><input type="radio" name="career" value="0">신입
                                <input type="radio" name="career" value="3">3년차 이상
                                <input type="radio" name="career" value="5">5년차 이상
                                <input type="radio" name="career" value="7">7년차 이상<br>
                                
        <label>name 속성</label><input type="checkbox" name="tech" value="java" checked="checked">java
                               <input type="checkbox" name="tech" value="script" checked="checked">script
                               <input type="checkbox" name="tech" value="python">python
                               <input type="checkbox" name="tech" value="c">c
                               <input type="checkbox" name="tech" value="SQL">SQL
                               <input type="checkbox" name="tech" value="design">design
        <input type="submit">
    </form>
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <h1>select 태그 연습하기</h1>
    
    <form action="register.jsp">
        <label>학력</label>
        <select name="school" id="">
            <option value="E">초등학교 졸업</option>
            <option value="M">중학교 졸업</option>
            <option value="H">고등학교 졸업</option>
            <option value="U" selected="selected">대학교 졸업</option>
            <option value="G">대학원 졸업</option>
        </select> <br>
        
        <label>전공</label>
        <select name="major">
            <optgroup label="인문대학">
                <option value="KQ">국어국문학과</option>
                <option value="ED">영어영문학과</option>
                <option value="BD">신문방송학과</option>
            </optgroup>
            <optgroup label="공과대학">
                <option value="MD">기계공학과</option>
                <option value="ELD">전기공학과</option>
                <option value="ETD">전자공학과</option>
                <option value="ENT">환경공학과</option>
                
            </optgroup> <br>
            <optgroup label="자연대학">
                <option value="MMD">수학과</option>
                <option value="PD">물리학과</option>
                <option value="CD">화학과</option>
                <option value="BYD">생물학과</option>
            </optgroup>
        </select ><br>
        <label>이메일</label><input type="text" name="email1">@
        <select name="email2">
            <option value="" disabled selected>선택하세요</option>
            <option value="daum.net">다음</option>
            <option value="naver.com">네이버</option>
            <option value="google.com">구글</option>
            <option value="nate.com">네이트</option>
            <option value="">직접 입력</option>
        </select>
        <input type="submit" value="제출하기"/>
    </form>
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <h1>textarea 태그 연습하기</h1>
    
    <form>
        <label>사용자명</label>
        <input type="text" name="username"> <br>
        <label>자기소개</label>
        <textarea name="profile" rows="5" cols="60"></textarea><br>
        <input type="submit">
    </form>
    
    <hr>
    
    <h2>textarea에 값을 미리 설정하기</h2>
    <form>
        <label>사용자명</label>
        <input type="text" name="username" value="홍길동"> <br>
        <label>자기소개</label>
        <textarea name="profile" rows="5" cols="60">나는 행복합니다~.</textarea><br>
        <input type="submit">
    </form>
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        .first {
            color: red;
        }
        .main span {
            color: blue;
        }
        .enter span {
            color: yellow;
        }
    </style>
</head>
<body>
    <h1>뉴스</h1>
    
    <h2>주요 뉴스</h2>
    <ul class="main">
        <li class="first">한국당 좌파 야합 반발, 정치투쟁 예고</li>
        <li><span>세월호 CCTV</span> 조작, 특조위에서 밝힌다.</li>
        <li><span>조선업 회복</span> 앞당긴다.</li>
    </ul>
    
    <h2>연예</h2>
    <ul class="enter">
        <li class="first">어벤저스 엔드게임 개봉 4시간만에 100만 돌파</li>
        <li>김상혁 피규어 <span>3000만 원치</span> 수집</li>
        <li>랜선라이프 <span>이영자 구독자 수</span> 보면 열심히 하게 되</li>
    </ul>
    
    <h2>스포츠</h2>
    <ul class="sports">
        <li class="first">3위 굳건 토트넘, 자력 UCL 유력해졌다</li>
        <li>에릭센 팬 서비스도 월드 클래스</li>
        <li>영국 현지, 이제 손흥민의 시대</li>
    </ul>
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        label {
        font-weight:bold;
        }
    </style>
</head>
<body>
    <h1>회원가입 폼</h1>
    
    <label>아이디</label><input type="text" name="id" placeholder="아이디 입력하세요."><br>
    <label>이름</label><input type="text" name="name" placeholder="이름 입력하세요."><br>
    <label>비밀번호</label><input type="password" name="pw" placeholder="비밀번호 입력하세요."><br>
    <label>이메일</label><input type="text" name="mail1" placeholder="이메일 입력하세요.">@
    <select name="mail2">
        <option value="" disabled selected>선택하세요</option>
        <option value="naver.com">네이버</option>
        <option value="daum.net">다음</option>
    </select><br>
    <label>생일</label><input type="date"><br>
    <label>자기소개</label><textarea name="profile" cols="100" rows="3" placeholder="자기소개를 300자 이내로 작성하세요."></textarea><br>
    <input type="submit">
</body>
</html>

 

'html' 카테고리의 다른 글

0422  (0) 2019.06.17
sample14~18(link, text, element)  (0) 2019.06.09
sample8~13 (table, img)  (0) 2019.06.09
sample1~7(title, text, list, table)  (0) 2019.06.09

 

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <h1>링크 만들기</h1>
    <!--
        a 태그를 사용하면 하이퍼링크를 만들 수 있다.
        
        <a href="연결할 문서의 주소" target="링크내용이 표시될 위치">링크이름</a>
        
        target의 속성값
            _blank: 링크된 문서가 새로운 창이나 새로운 탭에서 열린다.
            _self: 링크된 문서가 현재 창에서 열린다(기본값)
    -->
    <h2>프로젝트 내의 문서에 링크 연결하기</h2>
       <p>
        <a href="http://www.daum.net" target="_blank">다음</a>
        <a href="http://www.naver.com">네이버</a>
        <a href="http://www.google.com">구글</a>
    </p>
</body>
</html>


 

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <h1>한 페이지 내에서 특정 위치로 이동하는 링크 만들기</h1>
    
    <!--
        페이지의 내용이 긴 경우
        각각의 섹션마다 id를 부여하고,
        a태그에서 href의 속성값으로 id값을 지정하면
        해당 섹션 부분으로 스크롤 점프할 수 있다.
        <a href=#아이디">링크명</a>
    -->
    <h2>링크</h2>
     <p id="menu">
        <a href="#p1">IT</a>
        <a href="#p2">연예</a>
        <a href="#p3">스포츠</a>
    </p>
    
    <p id="p1">
        23일 ...중략... 알려졌다.<a href="#menu">top</a>
    </p>
    <p id="p2">
        22일 ...중략... 덧붙였다.<a href="#menu">top</a>
    </p>
    <p id="p3">
        다음은 ...중략... 했다. <a href="#menu">top</a>
    </p>
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
            overflow: hidden;
            background-color: #444;
        }
        li {
            float: left;
        }
        li a {
            display: block;
            color: white;
            text-align: center;
            padding: 14px 16px;
            text-decoration: none;
        }
        li a:hover {
            background-color: #111;
        }
    </style>
</head>
<body>
    <ul>
        <li><a href="">홈</a></li>
        <li><a href="">정규과정</a></li>
        <li><a href="">콘텐츠</a></li>
        <li><a href="">취업지원</a></li>
        <li><a href="">학원소개</a></li>
    </ul>
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
    <h1>텍스트를 강조하는 태그</h1>
    
    <p>
    해외의 ...중략... <strong>어디든 마다치 않고 발길을 옮기고 있다.</strong> 서울·경기·인천 등 ...중략... 19일 <em>서울 여의도</em>에서 만난 그는 ...중략... 말했다.
    </p>
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        h1, h2, p, ul, li {
            background-color: yellow;
            width: 800px;
            text-align: right;
        }
        strong, em, b, i {
        /* display: block; 인라인 엘리먼트도 블록 엘리먼트로 변경할 수 있다. */
            background-color: lightgreen;
            width: 300px; /* 효과 없음. 너비 조절 불가 */
        }
    </style>
</head>
<body>
    <h1>블록 엘리먼트와 인라인 엘리먼트</h1>
    
    <h2>블록 엘리먼트</h2>
    <p>나도 블록엘리먼트야</p>
    <ul>
        <li>나도 블록 엘리먼트야</li>
        <li>나도 블록 엘리먼트야</li>
    </ul>
    <h2>인라인 엘리먼트</h2>
    <p>
        <strong>인라인 엘리먼트</strong>로 감싸진 콘텐츠는 그 콘텐츠의 <em>너비만큼만 영역</em>을 차지한다.
        
    </p>
</body>
</html>

'html' 카테고리의 다른 글

0422  (0) 2019.06.17
sample19~27(div, span, id, class, form 등)  (0) 2019.06.09
sample8~13 (table, img)  (0) 2019.06.09
sample1~7(title, text, list, table)  (0) 2019.06.09

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
    <h1>중앙HTA 신입 사원 모집 공고</h1>
    <p>IT 기획, 편집 부서에서 함께 할 신입 사원을 모집합니다.</p>
    <h2>모집 내용</h2>
    <ul>
        <li>모집 직군 : 편집, 기획 부서</li>
        <li>직무 내용 : 도서 프로듀싱 업무(신입 지원 가능)
            <ul>
                <li>도서 기획, 편집</li>
                <li>도서 홍보, 독자 소통</li>
            </ul>
        </li>
        <li>접수 마감일 : 2019년 4월 30일</li>
    </ul>
        
    <p>자세한 내용은 모집 공고 게시판을 참고하시기 바랍니다.</p>
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        table, th, td {
            border:1px solid black; /* 테두리: 1픽셀 실선 검정색 */
            border-collapse: collapse; /* 경계 없애기 */
        }
        th, td {
            padding: 15px; /* 테두리와 콘텐츠 사이 간격을 15px로 설정 */
        }
        td {
            text-align: center;
        }
        tr:nth-child(2n) {
            background-color: #eee;
        }
    </style>
</head>
<body>
    <h1>주요 SNS 사이트 이용자 비율</h1>
    <p>주요 SNS 사이트의 서비스 별 이용률을 조사하였습니다.</p>

    <h2>주요 SNS 사이트 서비스별 이용률(%)</h2>
    <table style="width: 100%;">
        <tr>
            <th></th>
            <th>페이스북</th>
            <th>카카오스토리</th>
            <th>밴드</th> 
            <th>인스타그램</th>
            <th>트위터</th>
        </tr>
        <tr>
            <td>2017년</td>
            <td>77.7</td>
            <td>58.3</td>
            <td>32.5</td>
            <td>16.7</td>
            <td>22.1</td>
        </tr>
        <tr>
            <td>2018년</td>
            <td>23.7</td>
            <td>51.0</td>
            <td>40.1</td>
            <td>28.1</td>
            <td>14.5</td>
        </tr>
    </table>
    <h3>분석 내용</h3>
    <ul>
        <li>페이스북은 개인정보 유출사고 후 이용률이 급감함</li>
        <li>인스타그램 이용률이 증가하면서 트위터의 이용률이 감소함</li>
        <li>국내 SNS 이용률은 큰 변동 없음</li>
    </ul>
    
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <h1>표의 칸 병합하기</h1>
    
    <h2>가로 방향 칸 병합하기</h2>
    <table border = "1" style="width: 100%;">
        <tr>
            <td>1</td>
            <td>1</td>
            <td>1</td>
            <td>1</td>
        </tr>
        <tr>
            <td colspan="4">1</td>
        </tr>
        <tr>
            <td colspan="2">1</td>
            <td colspan="2">1</td>
        </tr>
        <tr>
            <td colspan="1">1</td>
            <td colspan="3">1</td>
        </tr>
        <tr>
            <td colspan="3">1</td>
            <td colspan="1">1</td>
        </tr>
    </table>
    
    <h2>세로 방향 칸 병합하기</h2>
    <table border="1" style="width: :100%;">
        <tr>
            <td>1</td>
            <td>1</td>
            <td>1</td>
            <td>1</td>
        </tr>
        <tr>
            <td rowspan="2">1</td>
            <td>1</td>
            <td>1</td>
            <td>1</td>
        </tr>
        <tr>
            <td>1</td>
            <td>1</td>
            <td>1</td>
        </tr>
        <tr>
            <td rowspan="3">1</td>
            <td>1</td>
            <td rowspan="3">1</td>
            <td>1</td>
        </tr>
        <tr>
            <td>1</td>
            <td>1</td>
        </tr>
        <tr>
            <td>1</td>
            <td>1</td>
        </tr>
    </table>
    <h2>가로/세로 방향 칸 병합하기</h2>
    <table border="1" style="100%;">
        <tr>
            <td>구분</td>
            <td colspan="2">상반기</td>
            <td colspan="2">하반기</td>
        </tr>
        <tr>
            <td rowspan="3">영업1팀</td>
            <td colspan="2">매입/매출 현황</td>
            <td colspan="2">매입/매출 현황</td>
        </tr>
        <tr>
            <td>매입</td>
            <td>10억</td>
            <td>매입</td>
            <td>15억</td>
        </tr>
        <tr>
            <td>매출</td>
            <td>20억</td>
            <td>매출</td>
            <td>17억</td>
        </tr> 
        <tr>
            <td colspan="1">비고</td>
            <td colspan="4">상반기에 비해서 하반기의 실적이 감소되었음</td>
        </tr>       
    </table>    
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <table border="1" style="width: 100%;">
        <tr>
            <td colspan="1">이름</td>
            <td colspan="1">홍길동</td>
            <td colspan="1">연락처</td>
            <td colspan="1">010-111-1111</td>
        </tr>
        <tr>
            <td colspan="1">주소</td>
            <td colspan="3">서울 종로구</td>
        </tr>
        <tr>
            <td colspan="1">이메일</td>
            <td colspan="3">hong@gmail.com</td>
        </tr>
    </table>
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        thead th {color: red;}
    </style>
</head>
<body>
    <h1>표의 구조 정의하기</h1>
    
    <p>
        thead,tbody,tfoot 태그를 사용하면
        표의 제목, 표의 본문, 표의 요약부를 구성할 수 있다.
    </p>
    
    <table border="1" style="width: 100%;">
        <caption>
            현재 예약 가능한 방 안내
        </caption>
           <thead>
            <tr>
            <th>숙소명</th>
            <th>방 개수</th>
            <th>가격</th>
            </tr>
        </thead>
        
        <tbody>
            <tr>
            <th>개나리방</th>
            <td>1개</td>
            <td>100만 원</td>
        </tr>
        <tr>
            <th>벚꽃방</th>
            <td>4개</td>
            <td>250만 원</td>
        </tr>
        <tr>
            <th>진달래방</th>
            <td>4방(욕실 2개)</td>
            <td>380만 원</td>
        </tr>
        </tbody>
        
        <tfoot>
            <tr>
                <th>창고</th>
                <td colspan="2">모든 요금은 2일 1박 기준(인원 추가 시 1인당 50만 원 추가)</td>
            </tr>
        </tfoot>
        
    </table>
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        img {
            opacity: 0.5;
        }
        img:hover {
            opacity: 1;
        }
    </style>
</head>
<body>
    <h1>이미지 표시하기</h1>
    
    <!--
        img 태그를 사용하면 이미지를 표시할 수 있다.
        <img src="이미지 파일의 경로" alt="이미지에 대한 설명"
             width="이미지의 폭" height="이미지의 높이"/>
    -->
    <h2>프로젝트 내의 리소스 사용</h2>
    <p>
        <img src="images/Koala.jpg" width="200" alt="코알라 사진"/>
        <img src="images/Penguins.jpg" width="200" alt="펭귄 사진"/>
        <img src="images/Hydrangeas.jpg" width="200" height="200" alt="수국 사진"/>
    </p>
    
    <h2>외부 리소스 사용</h2>
    <p>
        <img src="http://image.iacstatic.co.kr/allkill/item/2019/04/20190419140853551r.jpg" alt="지리산 뱀사골 토종 벌집꿀" />
    </p>
</body>
</html>

'html' 카테고리의 다른 글

0422  (0) 2019.06.17
sample19~27(div, span, id, class, form 등)  (0) 2019.06.09
sample14~18(link, text, element)  (0) 2019.06.09
sample1~7(title, text, list, table)  (0) 2019.06.09

<!doctype html>
<html lang="ko">
   <!--
       meta 태그는 화면에 글자를 표시하는 문자 인코딩 방식을 지정한다.
       한글 문서인 경우에는 utf-8 인코딩 방식을 사용한다.
    -->
    <head>
        <meta charset="utf-8">
        <!--
            title 태그는 문서의 제목을 포함한다.
            웹 브라우저의 제목 표시줄(탭)에 표시된다.
        -->
        <title>문서 제목</title>
    </head>
    <!--
        body 태그에 포함된 내용은 실제 브라우저에 표시된다.
    -->
    <body>
        <h1>html 연습</h1>
        <p>html 연습 시간에는 html의 주요 태그와
        각 태그의 속성을 공부해보도록 하겠습니다.</p>
    </body>
</html>

 

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <!--
        <h1> ~ <h6>
        문서의 제목을 포함하는 태그
    -->
    <h1>html의 이해</h1>
    <h1>html 기본</h2>
    <h2>html 기본 태그</h2>
    <h3>html 텍스트 관련 태그</h3>
    
    <h4>html 폼 관련 태그</h4>
    <h5>제목 태그</h5>
    <h5>본문 태그</h5>
    
    <h4>html 폼 관련 태그</h4>
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
   <h1>태그 연습</h1>
   <h2>단락 만들기</h2>
   <!--
       p 태그는 텍스트의 내용을 담는 태그다.
   -->
   <p>
       21일 삼성전자에 따르면 왈라왈라<br />
       21일 삼성전자에 따르면 왈라왈라
   </p>
   <!--
       br 태그는 줄을 바꾼다.
   -->
   <!--
        hr 태그는 단락의 주제가 바뀔 때 사용한다.
   -->
   <hr />
   <p>
       22일 삼성전자에 따르면 솰라솰라<br />
       22일 삼성전자에 따르면 왈라왈라
   </p>
   
   <blockquote>
       21일 삼성전자에 따르면 왈라왈라<br />
       
   </blockquote>
    
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <h1>목록 만들기</h1>
    
    <h2>순서 있는 목록 만들기</h2>
    <!--
        or(ordered list) 태그: 순서 있는 목록을 만든다.
        li(list item) 태그: 목록의 아이템을 만든다.
    -->
    <h3>검색 순위</h3>
    <ol>
        <li>티웨이 항공</li>
        <li>전유성</li>
        <li>구본임</li>
        <li>이랜드몰</li>
        <li>이외수</li>
    </ol>
    
    <h3>좋아하는 가수 순위</h3>
    <ol>
        <li>좋</li>
        <li>아</li>
        <li>하</li>
        <li>는</li>
    </ol>
    <h2>순서 없는 목록 만들기</h2>
    <!--
        ul(unordered list): 순서없는 목록을 만든다.
        li(list item): 목록의 아이템을 만든다.
    -->
    <h3>할인중인 상품</h3>
    <ul>
        <li>아이폰 8</li>
        <li>갤럭시 S9</li>
        <li>에어팟 1세대</li>
    </ul>
    <!--
    젠코딩
    -->
    h3{주요 뉴스}+ul>li*4
    <h3>주요 뉴스</h3>
    <ul style="list-style: none;">
        <li>남태현, 장재인 열애</li>
        <li>충격!...</li>
        <li>속보!...</li>
        <li>[상보]</li>
    </ul>
    
    <h2>정의 목록 만들기</h2>
    <!--
        dl(definition list): 용어를 설명하는 목록을 만든다.
        dt(definition term): 용어의 제목을 만든다.
        dd(definition description): 용어의 설명을 만든다.
    -->
    <h3>영화 정보</h3>
    <dl>
        <dt>제목</dt><dd>어벤져스:앤드게임</dd>
        <dt>장르</dt><dd>액션/SF</dd>
        <dt>개봉일</dt><dd>안소니 루소, 조 루소</dd>
        <dt>주연</dt><dd>로버트 다우니 주니어, 크리스 에반스, 브리 라슨</dd>
    </dl>
    
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
   <h1>목록 만들기</h1>
   
   <h2>중첩된 목록 만들기</h2>
   <h3>1박 2일 제주도 여행</h3>
    <ul>
        <li>1일차
            <ol>
                <li>올레길</li>
                <li>오름 올라가기</li>
                <li>제주 박물관</li>
            </ol>
        </li>
        <li>2일차
            <ol>
                <li>한라산</li>
                <li>사려니 숲길</li>
                <li>절몰 휴양림</li>
            </ol>
        </li>
    </ul>
    
    <h3>수업 일정</h3>
    <dl>
       
        <dt>프로그래밍 기초</dt>
        <dt>자바</dt>
        <dd>데이터베이스</dd>
        <dt>웹 기초</dt>
        <dd>html</dd>
        <dd>css</dd>
        <dd>javascript</dd>
        
        <dt>프로그래밍 실무</dt>
        <dd>jQuery</dd>
        <dd>Spring framework</dd>
        <dd>전자정부 표준 프레임워크</dd>
        
    </dl>
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
   <h1>표 만들기</h1>
   <!--
       table 태그: 표를 만든다.
       tr (table row): 표의 행을 만든다.
       th (table header): 표의 제목을 만든다.
   -->
   
   <h2>야구 종합 순위</h2>
   <table border="1">
       <tr>
           <th>순위</th>
           <th>팀</th>
           <th>승률</th>
       </tr>
       <tr>
           <td>1</td>
           <td>두산</td>
           <td>0.68</td>       
       </tr>
       <tr>
            <td>2</td>
            <td>SK</td>
            <td>0.625</td>
       </tr>
   </table>
    
</body>
</html>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        table, th, td {
            border:1px solid black; /* 테두리: 1픽셀 실선 검정색 */
            border-collapse: collapse; /* 경계 없애기 */
        }
        th, td {
            padding: 15px; /* 테두리와 콘텐츠 사이 간격을 15px로 설정 */
        }
        td {
            text-align: center;
        }
        tr:nth-child(2n) {
            background-color: #eee;
        }
    </style>
</head>
<body>
<h1>테이블 만들고, 스타일 부여하기</h1>
 
  <h2>야구 종합 순위</h2>
  
   <table style="width: 100%;">
       <tr>
           <th>순위</th>
           <th>팀</th>
           <th>승률</th>
       </tr>
       <tr>
           <td>1</td>
           <td>두산</td>
           <td>0.68</td>       
       </tr>
        <tr>
           <td>2</td>
           <td>SK</td>
           <td>0.625</td>       
       </tr>
       <tr>
            <td>3</td>
            <td>키움</td>
            <td>0.56</td>
       </tr>
       <tr>
           <td>3</td>
           <td>LG</td>
           <td>0.68</td>       
       </tr>
       <tr>
            <td>3</td>
            <td>NC</td>
            <td>0.56</td>
       </tr>
       <tr>
            <td>6</td>
            <td>롯데</td>
            <td>0.44</td>
       </tr>
   </table>   
</body>
</html>

'html' 카테고리의 다른 글

0422  (0) 2019.06.17
sample19~27(div, span, id, class, form 등)  (0) 2019.06.09
sample14~18(link, text, element)  (0) 2019.06.09
sample8~13 (table, img)  (0) 2019.06.09

+ Recent posts