<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>
등록된 댓글이 없습니다.