본문 바로가기
HTML

HTML5 global Attributes

by 코드디코더 2011. 4. 20.
global Attributes : 전반적인 속성들~


HTML5 global Attributes >

New~ 새로생긴 속성들~
contenteditable(true/false)    
 -Specifies if the user is allowed to edit the content or not.
 -컨텐츠의 수정 가능 여부
contextmenu(menu_id)
 -Specifies the context menu for an element
draggable (true/false/auto)
 -Specifies whether or not a user is allowed to drag an element
 -drag & drop API를 위해 사용되는 속성
dropzone (copy/move/link)
 -Specifies what happens when dragged items/data is dropped in the element
 -drag & drop API를 위해 사용되는 속성
hidden (hidden)
 -Specifies that the element is not relevant. Hidden elements are not displayed
spellcheck (true/false)
 -Specifies if the element must have its spelling and grammar checked


accesskey (character)
 Specifies a keyboard shortcut to access an element.
 Alt + 특정 키로 단축키 설정. (테스트 결과 크롬에서만 됨..;;)
class (classname)
 Specifies a classname for an element (used for stylesheets)
dir (ltr/rtl)
 Specifies the text direction for the content in an element
 텍스트의 오른쪽/ 외쪽 정렬.
id (id)
 Specifies a unique id for an element
lang (language_code)
 Specifies a language code for the content in an element
style (style_definition)
 Specifies an inline style for an element
tabindex (number)
 Specifies the tab order of an element
title (text)
 Specifies extra information about an element

'HTML' 카테고리의 다른 글

[HTML] 웹저장소(Web Storage)  (0) 2018.04.13
[css] 말줄임표시('...') css로 구현하기  (0) 2013.01.30
labal for 속성  (0) 2012.03.24
HTML5 canvas에 선과 원 그리기  (0) 2011.04.18