Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What should be written first, XHTML or CSS?

Tags:

css

xhtml

What should be written first while making CSS layouts XHTML code or CSS code?

  1. Write Whole HTML first then write CSS according to HTML
  2. Write HTML for an design element and CSS simultaneously
  3. Write whole CSS first then write HTML according to HTML

I read on this article's point # 7 "Create Your HTML First" is this advice best to follow?

Edit:

and in this tutorial author also write HTML First then write css using Edit CSS option of web developer toolbar i think this is best way.

like image 582
Jitendra Vyas Avatar asked Feb 27 '10 08:02

Jitendra Vyas


1 Answers

In practice, you generally wind up needing to intermingle the two. Start out with HTML to rough out the basic areas of your design, then work in CSS around that rough idea. Typically you'll find yourself needing to add some more markup to allow for additional flexibility (perhaps you need a couple of nested containers to properly align something, et cetera).

like image 158
Amber Avatar answered Oct 31 '22 17:10

Amber