I can answer this - forgive me if I get to technical.
Spider-man can stick to walls and swing on thin webbing due to a combination of the movement of electricity through the neuron membrane and the flow of a pigment, suspended in a liquid carrier over fiber based sheeting.
In laymans terms - the writer thinks of a story and the artist draws it that way.