If a triangle is defined as a plane figure with 3 straight sides and 3 angles, would it be part of its definition that it has one less side than a square?
Or is that just a property of it?
How do I know which is part of the definition and which is a property?
Like, for example, the angles must add up to 180 degrees, is this part of the definition or is it a property? Also, is having 3 straight sides, which is part of the definition, also a property? I read the pages on definition and properties on plato.stanford, but they were no help. Thanking you in advance.
You don't. A mathematician chooses the definition, and other properties then follow from that. A neat example is the determinant, which, as wikipedia notes, has various equivalent definitions. Not all mathematicians choose the same definition, although they do tend to choose equivalent definitions (I know of no exceptions).
This is also why you sometimes see comments on this site which ask the OP's definition of some concept: a question can be trivial to answer, or even true by definition, using one definition, but much more difficult using another equivalent definition.