We design and develop websites, digital experiences, and software solutions for growing businesses.
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.
.large { color: #fa0320; font-family:arial; font-size: 15pt; } |
I am the sample Div.
Span is similar to div.Commonly a span will only effect one line of text whereas a Div is for a block of text.
.extralarge { color: #fd06cc; font-family:arial; font-size: 15pt; } |
I am a span, defined in <span class="extralarge">www.vishmax.com </span>. |
I am a span, defined in www.vishmax.com.