% का उपयोग करके किसी छवि की ऊंचाई और चौड़ाई निर्धारित करने के लिए, आप निम्न कोड चलाने का प्रयास कर सकते हैं -
उदाहरण
<!DOCTYPE html>
<html>
<head>
<style>
img {
height: 50%;
width: 50%;
}
</style>
</head>
<body>
<p>Sized image in %</p>
<img src = "https://www.tutorialspoint.com/videotutorials/assets/videos/courses/155/images/course_155_image.png" alt = "CSS" width = "200" height = "200">
</body>
</html>