We introduce a notion of density point and prove results analogous to Lebesgue's density theorem for various well-known ideals on Cantor space and Baire space. In fact, we isolate a class of ideals for which our results hold.In contrast to these results, we show that there is no reasonably definable selector that chooses representatives for the equivalence relation on the Borel sets of having countable symmetric difference. In other words, there is no notion of density which makes the ideal of countable sets satisfy an analogue to the density theorem.The proofs of the positive results use only elementary combinatorics of trees, while the negative results rely on forcing arguments.1 set B Ď P pωq of Borel codes and Σ 1 1 sets P, Q Ď P pωq ˆR such that ty P R | P px, yqu " ty P R | Qpx, yqu for all x P B and every Borel set is of this form. Write B x for this set, the Borel set coded by x. With such a coding, standard arguments on the complexity of measure (see [Kec73, Theorem 2.2.3]) show that D µ restricted to the Borel sets is induced by a definable map on the Borel codes as follows: There is a map D : B Ñ B such that B Dpxq " D µ pB x q