Span (HTML element)
From Wiki @ Karl Jones dot com
Revision as of 09:21, 19 April 2016 by Karl Jones (Talk | contribs) (Created page with "In HTML, the '''span''' element represents an inline container within a block of content. == Inline == Span is an inline element, like strong and Em...")
In HTML, the span element represents an inline container within a block of content.
Contents
Inline
Span is an inline element, like strong and em.
It has little or no semantic meaning.
Span is a fundamental element in HTML.
Using span
It is widely used to apply text styles, or display background images, within a block of text.
- Give the span element a class attribute.
- Set the value of the class attribute to one or more class names.
- Write class rules for the class names.