There are 2 types of DVI interface: DVI-I and DVI-D, most the the Graphics cards and HDTVs adopt DVI-I.
Yes all graphics cards with DVI output can work with HDTV with DVI input, but be noted that HDTV has a maximum resolution limit, which may require you to modify the setting of your computer to adapt to that resolution of HDTV.