H Quiz: t4
Document Summary
You are given an html code snippet of n lines. Your task is to detect and print all the html tags, attributes and attribute values. Print the detected items in the following format: The -> symbol indicates that the tag contains an attribute. It is immediately followed by the name of the attribute and the attribute value. The > symbol acts as a separator of attributes and attribute values. If an html tag has no attribute then simply print the name of the tag. Note: do not detect any html tag, attribute or attribute value inside the html comment tags (). The first line contains an integer n, the number of lines in the. Print the html tags, attributes and attribute values in order of their occurrence from top to bottom in the snippet. Format your answers as explained in the problem statement.