That's called a wall, various walls can be crafted at a Workbench. For a 4 Wood Walls you need one Wood, for 4 Stone Walls - 1 Stone etc.
http://terraria.wikia.com/wiki/Walls