How to override the output from the Joomla! core
From Joomla! Documentation
This page has been archived. This page contains information for an unsupported Joomla! version or is no longer relevant. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
The standard output from Joomla! core can be overridden by adding code to the html directory in your template. Basic overrides are html/modules.php [override module output] html/pagination.php [override pagination output] but you can add override for any component or module.
Detail to follow