VOOZH about

URL: https://www.geeksforgeeks.org/css/cssstyledeclaration-length-property/

⇱ CSS StyleDeclaration length Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

CSS StyleDeclaration length Property

Last Updated : 9 Jun, 2023

The length property is used to find the number of style declarations used for the particular element.

Syntax: It is used to return the length property.  

element.style.length

Return Value: It returns the number of style declarations specified for an element in the form of integers.

Example: To show the working of the length property

Output: 

👁 Image
 

Supported Browsers: The supported browsers by Style Declaration length Property are listed below: 

  • Google Chrome 1
  • Edge 12
  • Internet Explorer 9
  • Firefox 1
  • Opera 12.1
  • Safari 6
Comment