Depends on what you want. Some condo/townhouses look like single family homes and have access to a common area or private patio area but you don't have to do the yard work. You do have to pay the monthly dues and you may be restricted as to what you can do to the outside of the home.
Single family homes usually have more flexibility as to what you can do with the exterior but a lot of newer subdivisions still have HOAs that can make rules and regulations. You may also have a monthly or yearly association fee. You will have to do your own year work and exterior maintenance on the house.