A CDD, or Community Development District, is a special-purpose government district created to pay for the upfront infrastructure of a community: roads, drainage, water and sewer lines, streetlights, and often the amenities like pools, parks, and clubhouses. The district sells bonds to fund that work, and homeowners pay the bonds back through an annual assessment that shows up on their property tax bill.
An HOA is different in a few important ways. An HOA is a private community association, not a government district. It enforces the community's rules and covenants and handles the ongoing maintenance of common areas, and you pay it directly, usually monthly or quarterly, separate from your taxes. A CDD is tied to the property and to infrastructure that is already built: it exists to retire the debt on the roads and utilities under your feet, and it is collected with your taxes rather than billed by a private association.
CDD assessments are typically long-term, often running 20 to 30 years to match the bonds the district issued, and because the assessment is attached to the property rather than to you personally, it generally transfers with the home when you sell. The next owner picks up the remaining payments, which is why you want to know the CDD's remaining term, not just its annual amount, before you buy.
The practical part is simple: check both numbers on the specific property you are considering, because amounts vary a lot from one community to the next and even between phases of the same community. Look at the annual CDD assessment on the tax record and the HOA dues, add them to your monthly housing budget, and understand what each one covers before you sign. I pull both for every home my buyers get serious about, so the number on paper matches what you will actually pay.