[Work in Pyret, putting your work in a file called document-code.arr]
You might have experience formatting a paper or report that includes headers, paragraphs, bulleted lists, etc, by pressing buttons in a word processor (such as Microsoft Word or Google Docs). You might also have seen that online articles and other websites (including this one!) have different sections and components that are displayed a bit differently. In this assignment, we'll explore two ways that computers can store structured text.
Part 1: Parsing HTML
HTML, or Hyper-Text Markup Language, is the language that describes websites on the internet. It is made up of content surrounded by tags which follow specific rules and dictate how a website will be displayed when it loads on your screen. A very basic website might have the following html (the output is on the left):
Output
HTML