Tapping is a guitar playing technique where a string is fretted and set into vibration as part of a single motion of being pushed onto the fretboard, as opposed to the standard technique being fretted with one hand and picked with the other.
It incorporates the techniques of hammer-on and pull-off, but these are usually only performed by the fretting hand, and in conjunction with conventionally picked notes, whereas tap passages involve both hands and consist of only tapped, hammered and pulled notes. Some players (such as Stanley Jordan) rely extensively or exclusively on tapping.
Tapping is an extended technique, executed by using either hand to 'tap' the strings against the fingerboard, thus producing legato notes. Tapping generally incorporates pull-offs or hammer-ons. For example, a right-handed guitarist might press down abruptly ("hammer") onto fret twelve with the index finger of the right hand and, in the motion of removing that finger, pluck ("pull") the same string already fretted at the eighth fret by the little finger of their left hand. This finger would be removed in the same way, pulling off to the fifth fret. Thus the three notes (E, C and A) are played in quick succession at relative ease to the player.
While tapping is most commonly observed on electric guitar, it may apply to almost any string instrument, and several instruments have been created specifically to use the method. The Bunker Touch-Guitar (developed by Dave Bunker in 1958) is designed for the technique, but with an elbow rest to hold the right arm in the conventional guitar position. The Chapman Stick (developed in the early 1970s by Emmett Chapman) is an instrument designed primarily for tapping, and is based on the Free Hands two-handed tapping method invented by Chapman in 1969 where each hand approaches the fretboard with the fingers aligned parallel to the frets. The Hamatar, Mobius Megatar, Box Guitar, and Solene instruments were designed for the same method. The NS/Stick and Warr Guitar are also built for tapping, though not exclusively. The harpejji is a tapping instrument which is played on a stand, like a keyboard, with fingers typically parallel to the strings rather than perpendicular. All of these instruments use string tensions less than a standard guitar, and low action to increase the strings' sensitivity to lighter tapping.
Some guitarists may choose to tap using the sharp edge of their pick instead of fingers to produce a faster, more rigid flurry of notes closer to that of trilling, with a technique known as pick tapping. Guitarist John "5" Lowery has been known to use it, and has nicknamed it a "Spider-Tap".
Tapping has existed in some form or another for centuries. Niccolò Paganini (1782-1840) used similar techniques on the violin, striking the string with a bouncing bow articulated by left-hand pizzicato. Paganini considered himself a better guitarist than violinist, and in fact wrote several compositions for guitar, most famously the "Grand Sonata for Violin and Guitar." His guitar compositions are rarely performed in modern times, though his violin compositions enjoy multiple performances. Some musicologists believe he wrote his 37 violin sonatas on guitar and then transcribed them for violin. Well known to frequent taverns, Paganini was likely exposed to gypsy guitar techniques from Romani, "gypsies." He preferred playing his guitar for tavern customers instead of audiences. 
Tapping techniques and solos on various stringed acoustic instruments such as the banjo have been documented in film, records, and performances throughout the early 20th century. Various musicians have been suggested as the originators of modern two-hand tapping. While one of the earliest players known to use the technique was Roy Smeck (who used a tapping style on a ukulele in the 1932 film Club House Party), electric pickup designer Harry DeArmond developed a two-handed method as a way of demonstrating the sensitivity of his pickups. One of DeArmond's students, Jimmie Webster, made recordings in the 1950s using a two-handed tapping method he described in theinstructional book Touch Method for Electric and Amplified Spanish Guitar, published in 1952.
In August 1969, Chapman developed a new way of two-handed tapping with both hands held perpendicular to the neck from opposite sides, thus enabling equal counterpoint capabilities for each hand. To maximize the technique, Chapman designed a 9-string long-scale electric guitar which he called "the Electric Stick" (and later refined as the Chapman Stick), the most popular dedicated tapping instrument. Chapman's style aligns the right-hand fingers parallel to the frets, as on the left hand, but from the opposite side of the neck. His discovery led to complete counterpoint capability, and a new instrument, the Chapman Stick, and to his "Free Hands" method. Chapman influenced several tapping guitarists, including Steve Lynch of the band Autograph, and Jennifer Batten.
The tapping technique began to be taken up by rock and blues guitarists in the late 1960s. One of the earliest such players was Canned Heat guitarist Harvey Mandel, whom Ritchie Blackmore claims to have seen using tapping onstage as early as 1968 at the Whisky a Go Go. George Lynch has corroborated this, mentioning that both he and Edward Van Halen saw Mandel employ "a neo-classic tapping thing" at the Starwood in West Hollywood during the 1970s. Mandel would use extensive two-handed tapping techniques on his 1973 album Shangrenade.
Randy Resnick (of the band Pure Food and Drug Act, which at one time also featured Mandel) used two-handed tapping techniques extensively in his performances and recordings between 1969 and 1974. Resnick was mentioned in the Eddie Van Halen biography for his contribution to the two-handed tapping technique. In reference to Resnick's playing with Richard Greene And Zone at the Whisky a Go-Go in 1974, Lee Ritenour mentioned in Guitar Player magazine January 1980 that "Randy was the first guitarist I ever saw who based his whole style on tapping." Resnick also recorded using the technique in 1974 on the John Mayall & the Bluesbreakers album Latest Edition and has said that he was attempting to duplicate the legato of John Coltrane's "Sheets of Sound".
In the late 1970s, Eddie Van Halen popularized the two-handed tapping technique. Van Halen claims that his own inspiration came from Jimmy Page: "I think I got the idea of tapping watching (Page) do his "Heartbreaker" solo back in 1971… He was doing a pull-off to an open string and I thought… I can do that, but what if I use my finger as the nut and move it around?"
Tapping can be used to play polyphonic and counterpoint music on a guitar, making available eight (and even nine) fingers as stops. For example, the right hand may fret the treble melody while the left hand plays an accompaniment. Therefore, it is possible to produce music written for a keyboard instrument, such as J.S. Bach's Two-part Inventions.
The main disadvantage to tapping is reduced range of timbre, and in fact it is common to use a compressor effect to make notes more similar in volume. As tapping produces a "clean tone" effect, and since the first note usually sounds the loudest (unwanted in some music like jazz), dynamics are a main concern with this technique, though Stanley Jordan and many Stick players are successful in this genre.
Depending on the orientation of the player's right hand, this method can produce varying degrees of success at shaping dynamics. Early experimenters with this idea, like Harry DeArmond, his student Jimmie Webster, and Dave Bunker, held their right hand in a conventional orientation, with the fingers parallel with the strings. This limits the kind of musical lines the right hand can play. The Chapman method puts the fingers parallel to the frets.
One-handed tapping, performed in conjunction with normal fingering by the fretting hand, facilitates the construction of note intervals that would otherwise be impossible using one hand alone. It is often used as a special effect during a shredding solo. With the electric guitar, in this situation the output tone itself is usually overdriven — although it is possible to tap acoustically — with drive serving as a boost to further amplify the non-picked (and thus naturally weaker) legato notes being played.
The overall aim is to maintain fluidity and synchronization between all the notes, especially when played at speed, which can take extensive practice to master.
Tapped harmonics are produced by holding a note with a player's left hand, and tapping twelve frets down from that note with the player's right hand. Rather than hammering-on and pulling-off with the right hand, harmonics are produced by hitting the fret with a finger. This method of tapping can be heard in Van Halen's songs "Women In Love" and "Dance the Night Away".