Write a program to create an index of a small collection of World Wide Web pages. Each "page" is a text file in a special format called HTML (Hypertext Markup Language). The HTML format includes regular text and special html commands, which are always encloses in angle braces. For example, the string layout.htm is an HTML command meaning that the following text should be highlighted; a user click on the highlighted text would cause a browser to fetch and display the file layout.htm.
Don't forget that links can be self-referential!