• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

8. Cascading Style Sheets > Tagless Styles: The <span> Tag

Tagless Styles: The <span> Tag

Up to now, we have used cascading style sheets to change the appearance of content within a designated tag. In some cases, however, you may want to alter the appearance of only a portion of a tag’s contents — usually text. Designate these special segments with the <span> tag.

<span>

Function

Delimits an arbitrary amount of text

Attributes

class, dir, id, lang, onClick, onDblClick, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp, style, title

End tag

</span>; never omitted

Contains

html_content

Used in

body_content


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint