I am not able to see the website title in Safari on macOS

Safari displays the website title in what it calls the Tab Bar. You apparently have the Tab Bar set to hidden.

To show the Tab Bar, open Safari on your computer, select View → Show Tab Bar in the Safari menu and the Tab Bar should now appear.

Safari View Menu

Selecting Show Tab Bar would enable Safari to always display the Tab Bar. It would work even after you quit and relaunch Safari.

You should now be able to see the website title easily.