What is the essential purpose of a Texas Homestead law?

A) To give families a tax break on portions of the value of their principal residence.
B) To protect a family's residence from the unilateral conveyance by one party or a forced sale to collect a debt.
C) To give a family immunity from the collection of debts.
D) To prevent husbands from gambling away all interest in the property.