php code not executed within html

i installed wamp on windows 11. i tested to see if php was installed by using command phpinfo and this worked. when i attempt to use php in html document the php echo statement does not work. i simply get the line of code (shows the echo statement). i have looked at at the php.in file and the httpd.conf file and all appears to be set properly. I dont know where else to look as all help searches point me to those files and the stated configurations look correct.
thanks for any help with this