On house wiring in the USA, on 120 Volt lighting circuits, there will be a "feeder" cable consisting of a white wire and a black wire. Except for older houses, there should also be a bare wire, or green, which is the bonding ground.
In a ceiling box that a light (or a fan) attaches to, there can be two ways of wiring it.
Most ceiling boxes have a feeder cable. This may branch off and feed other circuits, which in this case, the blacks will wire together, the whites will wire together, and the grounds together.
If the box is metal, the ground should also attach to it.
This is simply "passing the current through" to other circuits.
To pick up the light or the fan, there will be a white wire, a black wire, and possibly a green ground wire on the lamp. The ground could also be bare.
Some lights, such as chandeliers, have what appears to be a lamp cord, in this case, the wire in the cord that is marked with small lines, or lettering, will attach to the white wires in the box. One wire could be colored silver and the other copper. The silver will go to the feeder's white.
The cable going down to the switch is called "the switch loop", also "switch leg".
This cable also has a black and a white wire in it, and possibly a ground.
In the ceiling box, the switch loop's black wire ties onto the lamp's black wire.
The switch loop's white wire ties into the feeder's black wire.
This is done to keep from having two white wires feeding the lamp or fan.
The grounds on all circuits tie together.
On a fan the black wire ties to the switch loop black.
The white ties to the feeder white.
The blue wire is for a light kit that mounts to the bottom of the fan.
It can tie to the switch loop black with the fan, so that the switch turns both fan and light off and on.
However, most fans are wired so that the black wire ties to the feeder black, and the blue wire ties to the switch loop black. This is done so that the switch controls the light, but the fan motor is controlled by a pullchain switch on the fan.
The second wiring scheme would be that the feeder cable goes into the switch box first, in that case you will most likely only have one white, and one black wire in the ceiling box. (and maybe a ground).
In that case, its very simple, white to white, black (and blue) to black, and grounds together.
So if you just replace the fan with the chandelier, you should be just fine wiring it in place of the fan's motor, if the switch controlled the motor.
When attaching the wires (stranded to solid is ok), just make sure you twist them good, then twist the wire nut (also called a "cap") onto the connection.
Make sure no copper is exposed under the wire nuts on the whites and blacks, and you should be just fine.
Someone made a comment insinuating that house voltage is not all that dangerous.
Please note that house voltage (120) can kill you.
What kills you is the current, and it only takes about 30 MA (0.030 amp) to stop your heart. (The current available at the lamp is a steady 15-30 amps, but can supply 10,000 amps for a brief instant. This is called short circuit current, and really depends on how long the breaker or fuse can pass that much current.)
The current that flows through your body is based on the resistance your body has, and the voltage.
If you are sweating the danger increases greatly.
I know of several construction workers who have died because they accidentally got into some 120 volt wiring while working in a hot attic, or under a floor on moist ground.
I once wired up a doorbell transformer in a hot attic. I was wiring the low voltage side (about 16 volts), it was eating my lunch ever time I touched the wires.
Even telephone wiring will "bite" if you touch the conductors (wires) while laying on bare ground under the floor. (Experience is talking again!)
So just be careful when you do house wiring, turn off the power at the breaker or fuse panel. And make sure your connections are good and tight, because a loose connection will create heat when current flows through it.
If you are really not sure about what you are doing, pay the electrician a few bucks to do it for you. He(She) should be trained and know what to do.