Student or Learner
What is the difference between "yard" and "courtyard"?
Both mean an enclosed space, next to a building or house. Also 'farmyard' 'scrapyard' 'marshalling yard'
The difference, I think is that a yard is less formal than a courtyard. A courtyard might be used to refer to an enclosed space in a large building (maybe originally a courthouse). A yard is used in England to describe a small area at the back of a house. In the US it is used to describe a garden area.