clinton
Feb 3rd 2008, 8:17 pm
1 Don't be lazy, be organized, slipping up once could make more work for you later, and time is money;)
2. Always use doctypes
3. An Html doc should always have a <html> tag, head and body
4. Always add the keyword, description, content-type and language meta tags.
5. Use divs instead of tables, reason 1. Proper use of tables are for tabular data only, not layouts, images etc. 2. Tables(especially when nested) take longer for the browser to render plus it effects the pages file size.
6. Use external CSS for styling. Don't use <font size="1" face="Arial"><b>...It makes things very hard to change later on and it also adds to the pages loading time.
Old Way: <font face="Verdana" size="12"><b>Old way</b></font>
New improved maintainable way: <b class="SpecialText">New Way</b>
7. Indent your Html code so it's easy to read. Using tabs is way better than spaces. Reason 1, tabs can be displayed differently in your text editor, Reason 2, hitting the space bar 4 times is much more time consuming than hitting the tab bar once. Reason 3. using spaces instead of tabs greatly increases the file size.
<div>
<a href="">
Main
</a>
</div>
8. Comment your code.
9. Keep up to date with XHTML standards since they are the present and future of the web.
10. ........Please post more
2. Always use doctypes
3. An Html doc should always have a <html> tag, head and body
4. Always add the keyword, description, content-type and language meta tags.
5. Use divs instead of tables, reason 1. Proper use of tables are for tabular data only, not layouts, images etc. 2. Tables(especially when nested) take longer for the browser to render plus it effects the pages file size.
6. Use external CSS for styling. Don't use <font size="1" face="Arial"><b>...It makes things very hard to change later on and it also adds to the pages loading time.
Old Way: <font face="Verdana" size="12"><b>Old way</b></font>
New improved maintainable way: <b class="SpecialText">New Way</b>
7. Indent your Html code so it's easy to read. Using tabs is way better than spaces. Reason 1, tabs can be displayed differently in your text editor, Reason 2, hitting the space bar 4 times is much more time consuming than hitting the tab bar once. Reason 3. using spaces instead of tabs greatly increases the file size.
<div>
<a href="">
Main
</a>
</div>
8. Comment your code.
9. Keep up to date with XHTML standards since they are the present and future of the web.
10. ........Please post more