The question of whether ET had legs is a delightful technical trick. The answer: the puppet did not; the puppeteer did.
The iconic ET figure was a sophisticated animatronic/puppet hybrid operated from inside a costume. Its lower body was designed to imply legs and feet under the draped fabric, but there were no articulated mechanical legs inside. The "walking" effect was achieved by the puppeteer moving on their knees or via hidden supports.
Pat Welsh, a retired schoolteacher with a distinctive raspy voice, provided both ET's voice and the physical performance from within the suit. Welsh had legs, of course, but they were never seen on screen—concealed entirely within the costume and the set design.
Spielberg's camera angles, the costume's draping, and Welsh's performance created the seamless illusion of a small, legged alien. It's a testament to practical effects ingenuity: the audience "sees" legs that were never actually built.