Publishing your site generates the HTML pages with their associated graphics and other resources.
Note that publishing your site automatically replaces any obsolete HTML or graphic files in your site folder, so you should not normally edit these files manually.