What is the difference between these 2 way

I am adding color to my material. I find there are 2 ways for adding color. What is the difference? I thought it is same?