3 ms·
When writing HTML locally save the files with the extension ".xhtml". This forces XML conventions upon the document so that when you open it in the browser it
by anonymousguy 11y ago
When writing HTML locally save the files with the extension ".xhtml". This forces XML conventions upon the document so that when you open it in the browser it will immediately fail on the first syntax violation. This will help you learn to write better HTML.
When writing HTML be as descriptive as possible in your use of tag names. If you only use "div" and "span" for everything you are failing your users and destroying accessibility. Go read this http://www.w3.org/TR/WCAG20/ http://www.w3.org/TR/WCAG20/ and the various supporting documents. You cannot claim to have mastered HTML if you have failed to understand accessibility.
CSS just takes practice. With the browsers being less divergent now and easier to code for its harder to learn a deep deep level of mastery. Back in the days of IE6 you had to become quite the badass to make CSS work cross-browser without a bunch of stupid hacks.
For JavaScript there are some key things to focus upon:
* The scope model (learn closures and nesting functions)
* events and callbacks
* xmlHttpRequest (AJAX)
* the DOM
* the Node.js methods
Don't dick around wasting time learning frameworks and JQuery. Just learn through the vanilla code and learn to solve problems as directly as possible. It will pay off in the long run. Pass your code through the http://jslint.com/ http://jslint.com/ tool. JSLint is OCD crazy opinionated and extremely strict, but it is that on purpose. It is designed to teach defensive coding practices so that you can right code correctly the first time which has a significantly lower probably of failure and is easier to maintain.
- PaulHoule 11y agoThe XHTML is very bad advice: http://www.webdevout.net/articles/beware-of-xhtml http://www.webdevout.net/articles/beware-of-xhtml