Coder Social home page Coder Social logo

berkshirehathaway's Introduction

berkshirehathaway

An exercise to clean up the legacy code of a famous website homepage.

Further reading.

https://news.ycombinator.com/item?id=22867375

Initial observed errors/issues.

  • 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.

Steps taken to update.

  1. Change DOCTYPE to support HTML5.
  2. Add lang to html tag.
  3. Remove deprecated meta tags.
  4. Remove deprecated body attributes.
  5. Add viewport meta tag.
  6. Remove table and table rows and replace with divs.
  7. From the bottom up, remove all font tags.
  8. Prettify code.

Converting tables to divs.

  1. Change address.
  2. Add a header and footer.
  3. Add a main section.
  4. Add header tags.
  5. Replace legacy break tags.
  6. Replace bold tags.
  7. Address font sizings.

TO DO

  • Fix table.
  • Fix address style.
  • Fix spacings.

References.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.