Half a century ago, you could always tell those who had fillings because you could see the silver in their mouths. Those were silver amalgam fillings. They were cheap and effective, even though they had a little mercury in them.
Silver amalgam fillings still exist but now we have so many more attractive options that are more popular.
Ceramic fillings are made from porcelain and look like natural teeth. There are also glass ionomer fillings that also look natural, although not as durable as ceramic. Composite fillings, made from a resin and plastic substance, are both affordable and natural looking making them a highly popular option. Composites are considered the best choice by many dentists.
The long-lasting fillings are going to be the metal ones made from gold or another metal. They can last up to 20 years or more but the downsides are they are expensive and visible.