Husbands Neil Patrick Harris, 51, and David Burtka, 49, marked their 21st anniversary with social media postings.