A detached house shares no walls with its neighbor(s). It is an entirely independent house. It is a single plot of land with no concept of sharing.
However, an attached house shares its walls (or more) with its neighboring homes. Two or more houses are joined together meaning several people will look after the property collectively.