"The boy has a chocolate cookie."
Translation:Il ragazzo ha un biscotto al cioccolato.
Both "biscotto" and "cioccolato" are nouns, they need something to get connected.
(There are some exceptions to this rule, but for the beginning, I think it's safe to remember it that way.)
In this case, the connection is a preposizione articolata, AL = A + IL