Homework 6: Web browser, part 3
Requirements
- Headers: Text inside header tags should be in a bigger
font than other text. An <h1> should be larger than the other sizes.
The smaller sizes may all be identical to each other, but they should all be
larger than regular text.
- HTTP Headers: Suppress the header information.
Add a menu option or button that allows the user to display it.
- Adjustable Font Sizes: The user should have an option
to change the basic font size for rendered text.
- Font tags: The browser can handle tags that change
the font:
- The <em> and <i> tags change the font to italics.
- The <strong> tag indicates boldface.
- The <code> tag indicates
courier.
- The <pre> tag indicates
courier, with the text
being rendered in the same format as the source text with regard to
newlines and indentation.
- Search:
Add a search feature to your browser as follows. Each time it visits a page,
it will store the following data in a database:
- Word count for each word in the page
- Frequency count (total number of visits to the page)
- All outgoing hyperlinks
When a user enters a keyword into the search field, the browser will rank
the visited pages using the above data. You may choose to use the above
data in any manner that seems appropriate to you when determining the rankings.
You will then display the relevant pages, in ranked order, in such a way that
the user can click on one of the pages.
Important Bug Fixes
- It is vitally important that clickable hyperlinks be working.
- If other bugs persist from the previous assignment, discuss with the
instructor the priority you should place on fixing them.
Deadlines
For Wednesday, 11/4:
- Be prepared to discuss possible approaches to the search algorithm.
For Friday, 11/6 and Monday, 11/9:
For Wednesday, 11/11:
- Program due; submit via Sauron
- Code reviews in class.
For Friday, 11/13:
- Code review due at 8:10 am