In this paper, we present new results about the coloring of graphs. We generalize the notion of proper vertex-coloring, introducing the concept of range-coloring of order. The relation between range-coloring of order and total coloring is presented: we show that for any graph that has a range-coloring of order with colors, there is a total coloring of that uses colors. This result provides a framework to prove that some families of graphs satisfy the total coloring conjecture. We exemplify with the family of block-cactus graphs.