Topological aspects of gapless phases