HTML5 동영상강좌 바로가기 

댓글 목록

HTML 태그 - command

페이지 정보

작성자 운영자 작성일 14-12-11 11:01 조회 6,602 댓글 0

본문

 

HTML 태그 - command

<command>태그는 사용자가 명령을 호출할 수 있는 필요가 있을 때 사용합니다. html5에서 추가되었습니다.

속성

icon : 명령을 나타내는 그림을 지정합니다.

label : 명령의 이름을 지정합니다.

type : 명령의 종류를 지정합니다. 값으로 command, checkbox, radio가 있습니다.

 

샘플

<!DOCTYPE html>
<html>
        <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
         <meta name="author" content="코리아뉴스" />
 <title> html공부 </title>
 <link rel="stylesheet" type="text/css" href="default.css" / >
 <style type="text/css">
  body {
   color:red;
  }
 </style> 
 <script type="text/javascript" src="sample.js"> </script>
 <noscript>스크립트가 지원되지 않는 상태입니다. </noscript>
 </head>
 <body>
  <section>
   <h1>command태그</h1>         
   <p> 
  <command type="command" label="저장" icon="save.png" onclick="save()"> 

 

</p> </section> <div id="related"> <p>영역 </p> </div> <footer> <address> 전화 : 031-574-3659, E-mail : master@koreanews.com </address> Copyright ⓒ 2013 Koreanews co., All Rights Reserved. </footer> </body> 

</html> 

댓글목록 0

등록된 댓글이 없습니다.


HTML5 동영상강좌 바로가기