asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Elements > SPAN Element

<SPAN Element | SPAN Object


Specifies an inline text container.HTML 4, 4.01, 5

HTML Syntax

Remarks

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.

NOTE: Both start and end tags are required.

Attributes

The <span> element has no attribute of its own, but supports global attributes common to all HTML elements.

Example

<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.

See Also

DIV



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note