Where can I learn all about div and span attributes?

liunx

Guest
Whenever I see CSS tutorials, they invariably speak in terms of whole style sheets rather than just modifying a line or two. Is the <div> command considered html or CSS? How come sometimes it seems like you would say align="left" and sometimes "text-align: left;" ?<!--content-->The division is generic (x)html: <!-- m --><a class="postlink" href="http://www.xhtmlcoder.com/xhtml.htm">http://www.xhtmlcoder.com/xhtml.htm</a><!-- m --> the "text-align: left;" is CSS.<!--content-->Originally posted by mgdpublic <br />
Whenever I see CSS tutorials, they invariably speak in terms of whole style sheets rather than just modifying a line or two. Is the <div> command considered html or CSS? How come sometimes it seems like you would say align="left" and sometimes "text-align: left;" ? <br />
<div> is a tag so it's HTML. It can have styles applied to it and those are CSS. align="left" is a presentation-related attribute of the tag, which I suspect is deprecated for the style rule, style="text-align:left".<!--content-->Originally posted by ray326 <br />
<div> is a tag so it's HTML. It can have styles applied to it and those are CSS. align="left" is a presentation-related attribute of the tag, which I suspect is deprecated for the style rule, style="text-align:left". <br />
<br />
So if i'm gonna learn one thing it should be syntax for styles?<!--content-->Yes, learn CSS.<!--content-->
 
Back
Top