Reference no: EM132225043
A. Code Prettification
• Find on the internet (or write in your favorite programming language!) a program that "prettifies" HTML code.
- That is, when a <TABLE ...> tag is encountered, a carriage-return is inserted (if needed) and the indent level should be increased on all subsequent code. When a </TABLE> is encountered, indent level should be reduced.
· Does the same for any other significant tags (e.g. <tr>, <div>, etc.)
- Returns, or saves the prettified code in a new file (e.g. result.htm)
(Note that multiple tags may occur on the same line; but you may assume that the code originally input does generate a valid webpage)
• Test on the attached files:
- one of your choosing (Amazon, Facebook, etc.)
Link to your code-prettifier solution from your hw.htm page
• Link to the resulting prettified pages of code, and include notes as to provenance of the original source code, and degree of improvement rendered by your solution
Attachment:- Homework.rar