Both of those tags are legal (x)html. div has display:block property and spam has display:inline property. On the other hand the <font> tag has been deprecated for many years.On Saturday, January 03, 2004 at 23:43 (which was Sunday, January 4, 2004 at 7:43 where I am) Philipp Wagner wrote:
<font color="red"> 3
Are that errormessages? I would say, simply using a div tag like <div class="error"> and an declaration of how that should look in the template would be enough.
Hmm, shouldn't that be <span class="error">errormessage</span> or do these include blocklevel text in <p> or <ul>. The same would go for replacing <i>; or would using <span> break XHTML conformity (I'm not familiar with XHTML).
If the error message is to be displayed inline without leading or trailing newlines then use span; if the error message is to be displayed as a block with its own 4-way margins and paddings and/or positioning use div.
Define a class "errorMessage { color: red; } Now either tag can be used depending on
the display desired:
<div class='errorMessage'></div>
<span class='errorMessage'></span>