You may have to point to your project in the apache httpd folder. Here is an example where I created a project for a Udemy course:
DocumentRoot "C:/xampp/htdocs/Complete HTML and CSS Learn Web Development with HTML and CSS/public"
<Directory "C:/xampp/htdocs/Complete HTML and CSS Learn Web Development with HTML and CSS/public">
It was originally
DocumentRoot "C:/xampp/htdocs"
<Directory "C:/xampp/htdocs">
Restart your apache server and go to localhost and if you have an index file in the folder it will be rendered. Otherwise put the name of the file in the browser search box like this:
localhost/divspan.html as in my case.
Make sure you save a copy of the httpd file before modifying it so in case there is confusion you cab go back, a sort of version control mechanism for your httpd file.