[header] How to install fencing [title] Check building codes. [step] Contact your local municipality or homeowner association to ask about codes, restrictions, and permits relevant to your project. [substeps] It's also wise to discuss the project with your neighbors. 
If the fence is on an adjoining property line, you may be able to split the costs 50/50. [title] Measure the area to be fenced.