matching tags in an html document (continued from method ishtmlmatched uses stack to store the names of the opening tags seen so farsimilar to how the stack was used in code fragment method parsehtml uses scanner to extract the tags from the html documentusing the pattern "]*>,which denotes string that starts with '<'followed by zero or more characters that are not '>'followed by '>