An exercise to clean up the legacy code of a famous website homepage.
https://news.ycombinator.com/item?id=22867375
- Google Tag Manager/Google Analytics tag is in the incorrect place.
- Deprecated HTML 4.0 Transitional.
- Deprecated body attributes.
- No viewport meta tag.
- Charset is unicode, not UTF-8.
- Incorrect nesting order of tags.
- No semantic nesting of page structure.
- Hacks in coding leads to issues when trying to modernize.
- All links are purple.
- Non-breaking spaces.
- Use of bold tags.
- Use of font tags.
- Spurious tags that do nothing.
- Incorrectly nested closing font tags.
- Break tags.
- Spaces between tags.
- Lots of bold tags.
- Change DOCTYPE to support HTML5.
- Add lang to html tag.
- Remove deprecated meta tags.
- Remove deprecated body attributes.
- Add viewport meta tag.
- Remove table and table rows and replace with divs.
- From the bottom up, remove all font tags.
- Prettify code.
- Change address.
- Add a header and footer.
- Add a main section.
- Add header tags.
- Replace legacy break tags.
- Replace bold tags.
- Address font sizings.
- Fix table.
- Fix address style.
- Fix spacings.