This program called b/s structure, that is, the program with browser/server structure, is simply a website.
The program you used to do is called c/s structure, which is the program of client/server structure.
It seems difficult for delphi to program with b/s structure. B/s structure is generally composed of jsp, asp, ASP.NET, php, etc.
Welcome to visit my forum:)
Looking forward to your support:)