Carpeting. As the most popular floor covering, carpeting provides warmth and a soft feel underfoot. However, maintaining its appearance can be difficult, especially if someone spills something on it or a pet has an accident on it. There is a product called Tech that is the only stain remover on the market that will not void the manufacturer's warranty. Spray Tech on the stain, work it into the carpet a little bit, then blot up the stain with a warm cloth. (The company also makes wipes for removing stains on clothing.)Tile. Most people don't use the right cleaner on tile. One that works well, though, is S.C.I, manufactured by Marbalex. Look for the black bottle.
If the problem is the grout, you may have to replace it. But that becomes an easier job with a tool called a Dremel XPR. With its grout attachment, it makes short work of removing old grout. Then you can put in the new grout.
Sooner or later, scuff marks will appear on your tile floor. They're easy to get rid of, though. Use a dab of nail-polish remover to clean it right up.