Contact Us

|

FriendFeed FriendFeed

|

follow us on twitter Twitter

|

 Rss Feed

|

Favorites Add to Favorites

Saturday, December 16, 2006

Span and Div with CSS

The <span> and <div> tags are very useful when dealing with Cascading Style Sheets.

The div tag defines logical divisions (defined) in your Web page. It acts like a paragraph tag, but it divides the page up into larger sections.

The primary attributes of the div tag are:

* style
* class
* id

Span

The span tag has very similar properties to the div tag, in that it changes the style of the text it encloses. But without any style attributes, the span tag won't change the enclosed items at all.

The primary attributes of the div tag are:

* style
* class
* id

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home