To add styles to an element in vanilla JavaScript, you can either use style[property], style.cssText, create a style tag, or use a helper function.