Language References
Specifies an inline text container. | HTML 4, 4.01, 5 |
HTML Syntax
<span
class = classname
datafld = colname
dataformatas = html | text
datasrc = #id
id = value
style = css properties
title = text
event = script
>
The SPAN element encloses an inline section of content. A SPAN is especially useful for applying CSS styles to specific sections within a block.
To enclose blocks of content, authors can use the DIV element.
SPAN Members
<p>Here is a sentence with <span style="color:blue;
font:italic bold 11pt bookman,times,serif">a span
of text in bold, italic blue serif.</span></p>
Here is a sentence with a span of text in bold, italic blue serif.
DIV