HTML 사전

command

HTML5에서 도입되었음

설명

The command element represents a command which the user can invoke.

command 요소는 사용자가 불러낼 수 있는 명령을 뜻한다.  (명령어..라고 해야 할지. 명령이라고 해야할 지...)

Usage Context

Permitted content None, it is a void element.
Tag omission Must have a start tag, and must not have an end tag.
Permitted parent elements Any element that accepts phrasing content.
Normative document HTML5, section 4.11.3

속성

이 엘리먼트는 전역속성을 지원한다.

checked

Indicates whether the command is selected. Must be omitted unless the type attribute is checkbox or radio.

명령이 선택되었는지 여부를 나타낸다. type속성이 checkbox나 radio인 경우를 제외하고는 checked값이 없어야 한다.

disabled

Iindicates that the command is not available.

이 명령을 이용할 수 없다고 알려준다.

icon

Gives a picture which represents the command.

명령을 나타내는 그림을 제공한다.

label

The name of the command as shown to the user.

사용자에게 보여지는 명령의 이름이다.

radiogroup

This attribute gives the name of the group of commands, with a type of radio, that will be toggled when the command itself is toggled. This attribute must be omitted unless the type attribute is radio.

이 속성은 커맨드자체가 토글되었을때, 토글될 라디오 타입 명령 그룹의 이름을 줍니다. 이 속성은 type 속성이 radio인 경우를 제외하고는 생략되어야 한다.

type

This attribute indicates the kind of command. This can be one of three values.

이 속성은 명령의 종류를 나타내며 다음의 세 개 중 하나를 값으로 가질 수 있다.

  • command or empty which is the default state and indicates that this is a normal command.
  • checkbox indicates that the command can be toggled using a checkbox.
  • radio indicates that the command can be toggled using a radiobutton.
  •  
  • command 또는 디폴트상태가 되는 빈값 - 보통의 명령이라는 것을 뜻한다.
  • checkbox 는 명령이 체크박스를 이용해 토글될 수 있다는 것을 뜻한다.
  • radio는 명령이 라디오버튼을 이용해 토글될 수 있다는 것을 뜻한다.
     

예제

<command type="command" label="Save" icon="icons/save.png" onclick="save()">  

DOM Interface

This element implements the HTMLCommandElement interface.

이 요소는 HTMLCommandElement 인터페이스를 구현한다.

호환성

Desktop
기능 구글크롬 파이어폭스Gecko) 인터넷 익스플로러 Opera Safari
기본적인 지원          
Mobile
기능 안드로이드 파이어폭스 모바일(Gecko) 인터넷 익스플로러 모바일 오페라 모바일 사파리 모바일
기본적인 지원          

참고

댓글

댓글 본문
버전 관리
graphittie
현재 버전
선택 버전
graphittie 자세히 보기