first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

HTML: The Difference between DIV and SPAN

Both DIV and SPAN are "Generic Containers" as they do not apply any visible formatting without the use of the CLASS attribute and Cascading Style Sheets (CSS). The difference between DIV and SPAN is that the former is a block-level element and the latter is an in-line element.

The use of DIV and SPAN with CSS is quite successful with many web browsers. Using SPAN---and especially DIV---with client-side scripting is not very successful with many web browsers at this proprietary moment in time.

mod date: 1999-01-13T17:58:37.000Z