A legend is the description of the types of features included in a map, usually displayed in the map layout.
Click on the Legend() tool. The legend items are shown only for visible vector layers.