CSS DIV and CSS Span

CSS DIV

In HTML Div means a division which means partition. Each division can have its own formatting, styles which can defined through CSS. We can specify a Div through following ways.

Css Part

.large {
  color: #fa0320;
  font-family:arial;
  font-size: 15pt;
}

Html Part

I am the sample Div.

The result will be as follows

I am the sample Div.

CSS Span

Span is similar to div.Commonly a span will only effect one line of text whereas a Div is for a block of text.

Css Part – Span

.extralarge {
  color: #fd06cc;
  font-family:arial;
  font-size: 15pt;
}

Html Part – Span

I am a span, defined in <span class="extralarge">www.vishmax.com </span>.

The result will be as follows

I am a span, defined in www.vishmax.com.

Tags:

Related posts:

Partner with Us

We are providing an exclusive partnership offer to individuals and companies who are interested in setting up their own web design & development company. For more information about how to partner with us, please contact us