What are some of the most affordable beach cities to live in Florida?

I have been thinking about moving to Florida for a while now and I really want to live near the beach. I now there are a lot of beach cities in FL that are very expensive but I was wondering if there were any beach cities that are on the cheaper side that have more affordable houses. I am not looking for something right on the water but close by and reasonably priced.