The fundamental issue of imprecise search results arises owing to the misrepresentation of data on the web. Although a large number of theoretical models have been reported in literature, their implementation in the real world is still at an initial stage. This research is a systematic investigation on the underlying basis of ontologies, intelligent agents and semantic mechanisms. A solution is to put into action, the envisioned, 'Semantic web', by annotating/manipulating web pages using XML-based technologies, creating ontology for providing an RDF vocabulary in a hierarchical class structure and developing an intelligent agent, which would be capable of database access, comparison and inference. The system designed here is to enable a machine to 'understand' the information it holds, which in turn would greatly facilitate smart searching. This paper presents that the system has been successfully implemented and achieves accurate search results.