is there a difference between dc capacitor and ac capacitor?

Yes.

Above rules are good. Something things to note:
Some caps, mainly Tantalum and Electrolytic, are rated for voltages in only one direction (unipolar). These you should never use for AC applications where the voltage can drop below 0V for very long (small impulses can be expected, though using a bipolar cap to absorb them is probably a good idea). These are ones with polarity markings. When used wrong they will act as a short and often explode or burn up, and do not use one that has had a reverse voltage applied, since it might have fused inside and now just be a short. However, if you are rectifying an AC signal, so that it will always be positive, then you can use one of these safely. However, if you connect it backwards, it will probably explode.

Other caps usually are rated for AC and DC applications. Their allowable voltage ratings will often be different for AC vs DC. When choosing a cap, It is recommended giving yourself at least a 100% margin from what you expect your voltages to be.