If You wish to retrieve a template’s directory URI for the active theme, use
get_template_directory_uri()
Using get_template_directory_uri() to link a static image with its correct path in html :
1 | <img src="<?php echo get_template_directory_uri(); ?>/images/logo.png"width=""height=""alt=""/> |