What is best to use in a web page bookmarking tool: tags, a hierarchy or both?

I am creating a web page bookmarking tool. Traditional bookmarking has always given mechanisms to organize our bookmarks into a file/folder structure. New paradigm of flat tagging systems have now come too. I really liked the…