HTML DOM Ins 개체는 HTML 문서의 요소를 나타냅니다.
객체 생성
구문
다음은 구문입니다 -
document.createElement(“INS”);
ins 객체의 속성
| 속성 | 설명 |
|---|---|
| 인용 | HTML 문서에서 ins 요소의 cite 속성 값을 반환하고 변경합니다. |
| 날짜/시간 | HTML 문서에서 ins 요소의 cite 속성 값을 반환하고 변경합니다. |
ins 객체의 예를 살펴보겠습니다-
예시
<!DOCTYPE html>
<html>
<style>
body {
text-align: center;
background-color: #fff;
color: #0197F6;
}
h1 {
color: #23CE6B;
}
</style>
<body>
<h1>DOM ins Object Demo</h1>
<button onclick="createIns()" class="btn">Create an ins object</button>
<script>
function createIns() {
var insElement = document.createElement("INS");
insElement.innerHTML = 'I\'m a <ins> element in HTML';
document.body.appendChild(insElement);
}
</script>
</body>
</html> 출력

"Ins 개체 만들기를 클릭합니다. ” 버튼을 눌러 ins 개체를 만듭니다.
