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

Chapter 2. (X)HTML and Its Relationship to CSS > The <span> and <div> Elements

2.3. The <span> and <div> Elements

Other HTML elements can be used to apply CSS to a specific section of a Web page, enabling the Web author to set special CSS characteristics for that section, visually differentiating it from the rest of the Web page. This can be accomplished by using the <span> and <div> elements.

The <span> element is designed to temporarily override any existing CSS information that may have already been specified, and is meant to be used as an inline element. The <div> element works in the same manner, but is supposed to be applied to block-level elements.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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