Connect the black wire from the dimmer switch to the black wire of the light fixture. One difference between dimmer switches and regular switches is that with the latter the house wires attach directly to the switch.

How To Replace A Light Switch With A Dimmer Dummies
How to wire a dimmer switch to an outlet. There are good reasons for cutting the. How to wire a dimmer switch. Remove the screws holding the old switch in place and pull the device out of the box. Here is how to wire the new switch. Connect the white wire from the switch to the white wire of the fixture using wire nuts. Most dimmers on the other hand come with integral wire leads that connect to the house wires using wire nuts.
Blackhot to black and the wire marked common white or neutral to homes whitecommon wire. The hot source wire is removed from the receptacle and spliced to the red wire running to the switch. Straighten wire ends if needed and strip new ends if ends are corroded or dirty. The source is at the outlet and a switch loop is added to a new switch. We have one outlet that is tied to a dimmer switch on the opposite side of the room. I get about 6 7 beeps then it skips one beeps 6 7 more times skips continue.
I can detect that the outlet is hot using my voltage detector when the dimmer switch is all the way on but it pulses. If the switch youre replacing is the only switch controlling the light buy a standard single pole dimmer. If the light can be switched on and off from two or more switches buy a three way dimmer switch. But you wont be able to dim the lights from every switch location unless you buy a set of special dimmers with advanced electronics and install one at each switch location. The outlet doesnt work. Cut the existing wires as close to the switch as possible.
Your new dimmer switch then gets wired the same way as the previous switch ie. Twist wires together using a wire nut. The black wire from the switch connects to the hot on the receptacle. My gfci tester shows an open hot. Tighten the wire nuts clockwise and wrap with electrical tape.