How to implement Visualforce Component with Attributes ?

A Developer wants to implement such functionality or code which is required in multiple visualforce pages. So instead of repeating  the same code again and again, we can create visualforce component. Then we can use visualforce component in every place where we need that particular piece of code. In other words, custom visualforce component allows…