How is consonance used in poetry?

Consonance is used in poetry by only repeating constant sounds.

Shelley Sells Shells by the Seashore.

You can tell by in this sentence “s” is repeated. This only works for constants or non-vowels. This can be used to highlight important words or a significant constants or words.