How do we apply different styles to different groups of elements on a webpage?

By using classesBy using tag selectors

By using classes.