Usually the female will have short fins (sort of like a female guppy or female molly (female platy) has in color. The male, if it's a betta SPLENDENS will have long, flowing dorsal, tail and anal fins. However, there are short finned bettas (plakats, wild-types) that will have short fins (like female described above) and I've seen pet stores selling these male plakats as female betta splendens--which is false advertising because if you put one of these male plakats with a male splendens, they will fight to kill. A mature female betta splendens will have a small whitish spot at her "anus" which is her egg tube. Take a look on Aquabid, in the betta section, to see what females and males of the various fin types look like.
Mature males will make bubblenest--kind of in hopes of getting lucky! Doesn't have to be a female anywhere around and if htey are healthy and happy, most males will make a bubblenest (but not all, some are lazy) if the water isn't moving and there isn't a draft. Some females will also make bubblenests but it is rare.