Per Maryland Form 502 Instructions, on page 4:
7. Enter the name of your county on the MARYLAND COUNTY line. If you lived in Baltimore City, leave the MARYLAND COUNTY line blank.
In order to correctly calculate the Baltimore City Tax Rate, the County field in the address section must be left blank. In order to do this, please click No County in the County field.
To enter the information in TaxAct:
Note that any link in the information above is updated each year automatically and will take you to the most recent version of the document at the time it is accessed.