element.style is the correct property to access and modify inline styles of an element. It provides access to the element's style attribute and follows CSS property naming in camelCase (e.g., backgroundColor instead of background-color). Note that element.style only works with inline styles and doesn't access styles from stylesheets. To get computed styles from all sources, use getComputedStyle().