The Five Best Things I have learned about coding.
In no particular order the coding tips I have learned are:
- Characters Encoded – If it is a special character, it’s encoded.
- Hierarchy – Title tags are reserved for real content, and follow a clear hierarchy.
- IDs – Used anytime an element appears only once on the page and cannot be targeted any other way.
- JAVASCRIPT – jQuery (the most beautiful JavaScript library) is served from Google. Only a single JavaScript file is loaded. Both scripts are referenced at the bottom of the page.
- Valid – The markup adheres to W3C validation. Tags are closed, required attributes used, etc.
I have not been doing enough commenting, which I should. Commenting helps clarify bits of code, for someone else, or for yourself. You may have hundreds of lines of code, but if you want one specific bit of coding, your best bet would be to add some commenting.
The two things I needed to look up while learning more about this.
jQuery- as they say on their website,
jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript.
W3C – The World Wide Consortium is defined as,
The World Wide Web Consortium (W3C) is an international community where Member organizations, a full-time staff, and the public work together to develop Web standards. Led by Web inventor Tim Berners-Lee and CEO Jeffrey Jaffe, W3C’s mission is to lead the Web to its full potential. Contact W3C for more information.