spans and inline style

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

12-Sep-17 21:58
When is a span a better tool than an inline style element?
I see a span, and wonder what it is for, when I can do an inline style just as easily.

Jim Williams
13-Sep-17 18:57
"span" and "inline style" are not even close to being equal.

A span is an HTML inline level container.

"inline style" refers to specifying the CSS in the style attribute of an element rather than in a style sheet.

"inline style element" is not even a meaningful term used in HTML or CSS.

And using 'inline styles' is a laborious and inflexible way of presentation. As such it should be used very, very sparingly, if at all.

So long, and thanks for all the fish.

New posts
Old posts

Follow Elated