Welcome to the Webmaster Forum.
Results 1 to 12 of 12
  1. #1
    Senior Member
    Join Date
    Feb 2015
    Posts
    165

    Difference between div or span

    Difference between div or span

  2. #2
    Senior Member
    Join Date
    Dec 2015
    Location
    Mumbai
    Posts
    389

    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.

  3. #3
    Senior Member
    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.

  4. #4
    Member
    Join Date
    Oct 2016
    Posts
    44

    Re: Difference between div or span

    "span" tag is used to highlight some elements that have different css style with others

  5. #5
    Senior Member
    Join Date
    Oct 2016
    Location
    India
    Posts
    195

    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.

  6. #6
    Senior Member
    Join Date
    Jan 2016
    Location
    Mumbai
    Posts
    519

    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.

  7. #7
    Senior Member
    Join Date
    Aug 2016
    Location
    Kolkata
    Posts
    276

    Re: Difference between div or span

    Div is a block tag & Span is an inline tag.

  8. #8
    Junior Member
    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.

  9. #9
    Junior Member
    Join Date
    Jun 2017
    Location
    India
    Posts
    4

    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.

  10. #10
    Senior Member
    Join Date
    Oct 2016
    Location
    India
    Posts
    195

    Re: Difference between div or span

    div for a large block of content, span for a small block of content.

  11. #11
    Junior Member
    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.

  12. #12
    Junior Member
    Join Date
    Jan 2018
    Posts
    20

    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.

 

 

Similar Threads

  1. difference between 2G, 3G & 4G ...?
    By bestastrologyservice in forum General Talk
    Replies: 9
    Last Post: 10-24-2017, 08:23 AM
  2. what is difference between c and c plus plus..?
    By Keerti in forum Coding & Programming
    Replies: 9
    Last Post: 04-16-2016, 11:57 AM
  3. Difference between 301 and 302 ?
    By wctmgurgaon in forum General Talk
    Replies: 0
    Last Post: 11-04-2015, 01:59 AM
  4. What is the difference between H1 Tag and Alt Tag in SEO?
    By shilpa sharma in forum Search Engine Optimization (SEO)
    Replies: 8
    Last Post: 03-13-2015, 03:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Back to top

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165