1. A computer implemented method comprising: receiving a portion of code for a multi-state object, the portion of code comprising a plurality of statements specifying any subcomponents and attributes of the multi-state object, a statement of the plurality of statements specifying that a first subcomponent is included in the multi-state object when the multi-state object is in a first state; determining that the multi-state object includes the first subcomponent when in the first state based on the statement specifying that the first subcomponent is included in the multi-state object when the multi-state object is in a first state; determining that the multi-state object excludes the first subcomponent when in a second state; and providing a piece of content comprising the multi-state object, wherein in the first state, the multi-state object comprises the first subcomponent and, in the second state, the multi-state object does not comprise the first subcomponent.