contenteditable 속성

2020. 12. 13. 22:55

일반적으로 일반 사용자는 HTML문서의 내용을 읽을 수만 있다. contenteditable 속성은 일반 사용자에게 html 요소의 내용을 수정할 수 있도록 설정할 수 있다. - 실제 내용은 변하지 않음

 

<!DOCTYPE html>
<html>
	<head>
		<title></title>
	</head>
	<body>
		<div contenteditable="true">He that walketh uprightly, and worketh righteousness, 
		and speaketh the truth in his heart. He that backbiteth not with his tongue, 
		nor doeth evil to his neighbour, nor taketh up a reproach against his neighbour. 
		In whose eyes a vile person is contemned;</div>
	</body>
</html>

 

See the Pen MWjJOvO by Yoo (@spiegel) on CodePen.

 

반응형

'HTML' 카테고리의 다른 글

dir 속성  (0) 2020.12.18
data-* 속성  (0) 2020.12.18
class 속성  (0) 2020.12.11
accesskey 속성  (0) 2020.12.11
전역 속성(Global Attributes)  (0) 2020.12.10