Actually, it was the advance in anti-capital-ship missiles that finally doomed the battleship. When man-portable antitank missiles can penetrate 800mm of armor steel behind a layer of explosive reactive armor, naval attack missiles won’t have much of a problem with an Iowa’s armor.
They’re awesome, but missiles are the main combat means in modern sea war and they’re horribly vulnerable to those.
“. . . man-portable antitank missiles can penetrate 800mm of armor steel?” That is 31.496063 Inches! Hellofamissle!
BBs may have been vulnerable to missiles, but smart bombs took over the role of the BB for land bombardment.
Before smart bombs, BBs put the fear of God into the bad guys back in the day! 2700 lbs of high explosive will ruin your day!
And, by the end of their life cycle, the 16” naval guns were very accurate!
IIRC the BBs were mothballed (1992) before the bad guys had missiles that were effective against them.