Results 1 to 13 of 13
Thread: Difference between div or span
-
07-05-2016, 01:48 AM #1
- Join Date
- Feb 2015
- Posts
- 251
Difference between div or span
Difference between div or span
-
07-05-2016, 05:38 AM #2
- Join Date
- Dec 2015
- Location
- Mumbai
- Posts
- 385
Re: Difference between div or span
The difference between span and div is that a span element is in-line and usually used for a small chunk of HTML inside a line (such as inside a paragraph) whereas a div (division) element is block-line (which is basically equivalent to having a line-break before and after it) and used to group larger chunks of code.
-
09-12-2016, 08:01 AM #3
- Join Date
- Jan 2016
- Location
- Mumbai
- Posts
- 157
Re: Difference between div or span
a span element is in-line and usually used for a small chunk of HTML inside a line (such as inside a paragraph)
div (division) element is block-line (which is basically equivalent to having a line-break before and after it.
-
10-27-2016, 10:22 AM #4
- Join Date
- Oct 2016
- Posts
- 43
Re: Difference between div or span
"span" tag is used to highlight some elements that have different css style with others
-
10-28-2016, 01:25 AM #5
- Join Date
- Oct 2016
- Location
- India
- Posts
- 193
Re: Difference between div or span
The difference between span and div is that a span element is in-line and usually used for a small chunk of HTML inside a line (such as inside a paragraph) whereas a div (division) element is block-line (which is basically equivalent to having a line-break before and after it) and used to group larger chunks of code.
-
11-10-2016, 07:55 AM #6
- Join Date
- Jan 2016
- Location
- Mumbai
- Posts
- 517
Re: Difference between div or span
<div> is a block tag, while <span> is an inline tag. <div> is a block-level element and <span> is an inline element.
-
11-29-2016, 05:22 AM #7
- Join Date
- Aug 2016
- Location
- Kolkata
- Posts
- 276
Re: Difference between div or span
Div is a block tag & Span is an inline tag.
-
06-18-2017, 09:39 AM #8
- Join Date
- Jun 2017
- Posts
- 22
Re: Difference between div or span
Using div for a large block of content, span for a small block of content. That is my opinion.
-
06-28-2017, 07:30 AM #9
Re: Difference between div or span
Div and Span both are important tag to build any website, all are know that div is block tag, look link "<div> </div>" and span is inline Tag.
-
07-03-2017, 02:29 AM #10
- Join Date
- Oct 2016
- Location
- India
- Posts
- 193
Re: Difference between div or span
div for a large block of content, span for a small block of content.
-
01-05-2018, 01:36 AM #11
- Join Date
- Jan 2018
- Posts
- 16
Re: Difference between div or span
There are a big difference between span and div as below :
- span element is in-line and usually used for a small chunk of HTML inside a line like inside a paragraph,
- div (division) element is block-line which is basically equivalent to having a line-break before and after it and used to group larger chunks of code.
-
01-11-2018, 04:10 AM #12
- Join Date
- Jan 2018
- Posts
- 19
Re: Difference between div or span
The <div> tag is a generic block-level element, so a rectangular object which can not be broken over several lines.
It’s easy to customize it to your needs.
The div element is currently the most common method for identifying the structural sections of a document and for laying out a web page using CSS.
-
01-26-2018, 01:05 AM #13
- Join Date
- Oct 2017
- Location
- Hoshiarpur
- Posts
- 14
Re: Difference between div or span
Span is an inline element. It’s perfect for inline styling, like coloring a single word sentence. Div is a block level element because it is used to make separate containers or boxes within a page or document.
Similar Threads
-
difference between 2G, 3G & 4G ...?
By bestastrologyservice in forum General TalkReplies: 9Last Post: 10-24-2017, 07:23 AM -
what is difference between c and c plus plus..?
By Keerti in forum Coding & ProgrammingReplies: 9Last Post: 04-16-2016, 10:57 AM -
Difference between 301 and 302 ?
By wctmgurgaon in forum General TalkReplies: 0Last Post: 11-04-2015, 01:59 AM -
What is the difference between H1 Tag and Alt Tag in SEO?
By shilpa sharma in forum Search Engine Optimization (SEO)Replies: 8Last Post: 03-13-2015, 02:32 AM
Bookmarks