I need code for the below mentioned project
Project 1: An html tag and attribute counter. In this project we will write a short program to count the tags and attributes in an html or xml file. A tag which occurs only once might be misspelled, and in any case, it is interesting to compare how many different tags and attributes different writers use. A very slight variation on the code will permit us to mark those tags, attributes, and attribute values which are known to be valid, or known to be wrong. The input for our program will be an ordinary html file. The output will look something like this: sorted by usage: 1 used in 52 1 used in 1 1 used in 152 1 used in 12 1 used in 12 1 used in 12 1 used in 42 1 used in 52 2 used in 14 2 used in 17 2
used in 63 2
used in 75 2
used in 54
3
used in 22
3
used in 13
7
used in 52
sorted by tag:
1 used in 52
2
used in 63
2
used in 75
3
used in 22
1 used in 1
1 used in 152
1
used in 12
1
used in 12
1 <tabl