A lot of Joomla sites start with a template that’s close but not quite right. You want a different header, one more module position or a tidier article layout. So you open the template files and start editing, and it all works fine until the template or Joomla itself gets updated and your changes disappear.
Joomla has two safer ways to do this. Layout overrides change how a module, component or layout displays its output, and child templates let you change a template while the parent stays as it is. Between the two, your design work stays separate from code someone else looks after.