The majority of Tenerife's bars, cafés and restaurants don't enforce a dress code, which means that shorts, for instance, can be worn almost most anywhere. Bear in mind, though, if you intend to stay in a hotel (or visit one for an evening meal, perhaps), you may be required to wear more elegant attire.