Viscosity is a measure of a fluid's internal resistance to shear forces or flow. It describes a fluid's resistance to changes in shape when stress is applied. Viscosity depends on the molecular structure of the fluid and arises due to intermolecular friction. Newtonian fluids have a constant viscosity that does not change with shear rate, while non-Newtonian fluids have variable viscosities. Viscosity can be measured using capillary viscometers, rotational viscometers, and online viscometers. It is affected by temperature, with most liquids becoming less viscous when heated. Viscosity is an important consideration in applications like lubrication, pumping fluids, blending fuels, and coating or printing processes.