When I get a design from a designer, I get it as a PSD (Photoshop) file. I always expect proper layer and folder names, basically a clean and managed PSD. From this desigbn I develop HTML, CSS and JavaScript and deliver it to the back-end developers. To make it easy for them to understand, I
- write semantic code,
- keep JavaScript and CSS in external files,
- add useful comments in HTML, CSS and JS files,
- use CSS sprites (though developers don't like it),
- use HTML5 boiler plate,
- use jQuery for JavaScript,
- try to use new HTML5 tags and CSS3 whenever possible and
- sent a Zip file containing the HTML, CSS, JS and images.
I expect that if small changes will need to be made to the layout, the developers can handle that.
I would like to hear from back-end developers and other CSS ninjas what more one could do in terms of organization of files and mark-up to make the integration with back-end systems easier (i.e. back-end technologies, PHP, .NET, Ruby etc.) Different client uses different systems.
Best Answer
A lot of these answers are going to cover the broad swaths of ideas, but here's my personal ones:
<button>
tags suck.backround-image
for things that really should be<img>
tags suck.Finally, and maybe most importantly:
foreach
or anif
statement and how to format anecho
statement or move a<?php ?>
tag around will greatly increase your value as a front-end developer - I love when a front-end developer needs to make a simple change and can do it in the template instead of handing me a new zip of all of their files.Those are just a few - I'm sure there are many more, but if you accomplish all of these you're sure to earn the respect and appreciation of whoever is turning your templates into a web site.