Black beard algae consists of little tufts of black hairs, not too long, that look like a very small clump of grass and appear out on the tips of things in higher current areas. Brown diatom algae coats all types of surfaces, starting first with leaves and glass, preferentially under brighter light but also often beginning in glass/gravel corners where water flow is reduced and tiny concentrations of ammonia can happen which trigger the spores to activate.
If its brown algae, it can be wiped clean rather easily (even via your hand on smoother surfaces, but usually with a mildly rough sponge on plants and other rougher surfaces, being very gentle) and the main focus of prevention will be in lowering the number of hours of light. For plants more complex than algae, light needs to come in periods of at least 4 hours, so that the photosynthetic machinery can crank to life and produce enough sugars to give the plant a minimal meal. So one 4 hour stretch is the first minimum that new planted tanks usually start with. Often a second 4 hour stretch (to total 8 hours) is tried, watching to see if algae begins to be a problem. Algae problems change over the lifetime of a tank. Different algae species respond to more complex chemistry, but light is always the largest factor.
Light plus ammonia triggers algae spores (which are universally present in fresh water.) The amount of ammonia needed is below what our test kits can detect, so you can't go by that. Water changes are one of the next biggest factors after light control. Frequent water changes will keep a tank more free of algae (because both algae plants and spores are removed) than a tank that has fewer water changes. Unfortunately, some actions you take in response to one type of algae may enhance the chances of a different species. When you increase the volume of your water changes, assuming you use fresh tap water, you may be causing the CO2 level to bounce up and down to a large enough extent to encourage black beard algae! All of this is just to say that algae abatement is an ongoing skill development in the hobby!
~~waterdrop~~