A resistor is a passive electrical component that implements electrical resistance. It follows Ohm's Law such that voltage divided by resistance equals current. There are two main types - fixed resistors with a set resistance and variable resistors whose resistance can be adjusted. Resistors can be connected in series or parallel. The resistor color code uses bands of color to indicate resistance value and tolerance. The power rating specifies the maximum power a resistor can withstand before being damaged.