उदाहरण
height प्रॉपर्टी से एलिमेंट की ऊंचाई सेट करें।
<!DOCTYPE html>
<html>
<body>
<h1>हेडिंग 1</h1>
<p>यह डेमो टेक्स्ट है।</p>
<button type="button" id="myID" onclick="display()">ऊंचाई अपडेट करें</button>
<script>
function display() {
document.getElementById("myID").style.height = "100px";
}
</script>
</body>
</html>
मान: auto (डिफ़ॉल्ट), लंबाई (px, em, %), initial, inherit।
संबंधित: minHeight, maxHeight।