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
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.