Alliteration is the use of the same consonant sounds in words that are near each other. It is the sound, not the letter, that is important: therefore ‘city’ and ‘code’ do not alliterate, but ‘kitchen’ and ‘code’ do. The Poetry Archive  

alliteration