How do you replace the headlight bulb located on a 2002 Ford Ranger?

Open up the hood, and go in behind the fixture where the light is located. Sometimes there is an access panel on top. Open it and reach down inside and grab the bulb's socket. Some cars will have clips holding the socket in. Unclip and pull out the socket out. Grab the bulb, and pull it straight out. To replace the new bulb, never touch it with your bare fingers, as this will greatly shorten the bulb's life, if it even work's at all. Use a tissue or something else in that order to handle the new bulb. Push the new bulb into the socket, put the socket back into the housing, and replace the clips to secure the socket into the fixture.