I'm curious how other developers are coding their pages: do you write your HTML or your CSS first
when mocking up new page content? What do you feel are the benefits of your approach?
I traditionally am given a design to code, and write the markup HTML first. I then start coding my
CSS. It will get to a point where I need to quickly tweak individual elements, and I'll start coding in
line instead in the .css file. At the end, I would clean up my inline styles and find where I can put
them in the stylesheet to keep order.
I'm considering moving to a more testdriven development approach, where I mock all of my CSS
first, then code the markup. The thought is I will iron out all of my CSS first, and by defining how
the CSS functions, will have essentially already written all of my markup structure. So coding the
HTML is the easy part.
Thoughts on your current approach and my proposed "CSSdriven development?"
when mocking up new page content? What do you feel are the benefits of your approach?
I traditionally am given a design to code, and write the markup HTML first. I then start coding my
CSS. It will get to a point where I need to quickly tweak individual elements, and I'll start coding in
line instead in the .css file. At the end, I would clean up my inline styles and find where I can put
them in the stylesheet to keep order.
I'm considering moving to a more testdriven development approach, where I mock all of my CSS
first, then code the markup. The thought is I will iron out all of my CSS first, and by defining how
the CSS functions, will have essentially already written all of my markup structure. So coding the
HTML is the easy part.
Thoughts on your current approach and my proposed "CSSdriven development?"

Help
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Back to top















