Write a program that checks whether a sequence of HTML tags is properly nested. For each opening

Question:

Write a program that checks whether a sequence of HTML tags is properly nested. For each opening tag, such as, there must be a closing tag

. A tag such as

may have other tags inside, for example:


The inner tags must be closed before the outer ones. Your program should process a file containing tags. For simplicity, assume that the tags are separated by spaces, and that there is no text inside the tags.


Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: