The agreement that the house property belongs to the child in the divorce agreement is legal and valid, but it must meet the legal and valid conditions, that is, both parties have full civil capacity when making the agreement, and the agreement that the house property belongs to the child is true; The content of the agreement does not violate the mandatory provisions of laws and administrative regulations, and does not violate public order and good customs.
Legal basis:
Article 143 of the Civil Code of the People's Republic of China
Civil juristic acts that meet the following conditions are valid:
(1) The actor has corresponding civil capacity;
(2) True declaration of intention;
(3) It does not violate the mandatory provisions of laws and administrative regulations, and does not violate public order and good customs.
Article 144 of the Civil Code of the People's Republic of China
A civil juristic act committed by a person without civil capacity is invalid.