s = input('html code: ')

# RE something with
# <BLAH>BLAH</BLAH>

# output should look like
print('Tag: a')
print("Properties: href='hello.html'") # only if present
print('Contents: hi there')

# or
print('Not valid')