Micro Niche Builder
Closed Thread
Results 1 to 5 of 5

Thread: what is the difference between a div and a span tag?

  1. #1

    Default what is the difference between a div and a span tag?

    Hello guys.

    I want to know whats the difference between a div and a span tag?

    Thanx in advance.


  2. SEO Software

  3. #2

    Default

    <div> is a block element. <span> is a inline element. The difference between block element and inline element is that block element will change to a new line to display.

    But you can use the CSS {display:block} or {display:inline} to change the behavior of inline element to block one and block element to inline one.

  4. #3
    Master Apprentice Handsome is on a distinguished road Handsome's Avatar
    Join Date
    Feb 2009
    Location
    Multan/Pakistan
    Posts
    2,040
    Thanks
    317
    Thanked 134 Times in 107 Posts
    Blog Entries
    5

    Default

    <span> and <div> tags both allow a Web designer to style text and add other formatting attributes to their Web page. They are not interchangeable tags, though. <div> tags are block-level elements, whereas <span> tags are not. This article explains this, and other differences, between <span> and <div> tags.

  5. #4

    Default well said

    Quote Originally Posted by unigogo View Post
    <div> is a block element. <span> is a inline element. The difference between block element and inline element is that block element will change to a new line to display.

    But you can use the CSS {display:block} or {display:inline} to change the behavior of inline element to block one and block element to inline one.
    well said ,


    that's the simplest explanation , in other words u have posted my words , way to go bro

  6. #5

    Default

    I think so do not know whether the correct?

    The ‘div’ and the ’span’ tags are quiet frequently used tags in HTML. The proper understanding of these tags are very much important for a web HTML developer.This article is shows what are the characteristics of both these tags. Understanding the difference between both tags will help to use them in appropriate place.

Closed Thread

Similar Threads

  1. What is the difference between <b> and <strong> ?
    By sanky12ka4 in forum HTML & CSS Help
    Replies: 14
    Last Post: 04-19-2010, 01:21 AM
  2. What is the difference between VDS & VPS?
    By now_i_m_here in forum VPS Forum
    Replies: 1
    Last Post: 12-02-2009, 02:52 AM
  3. What is the difference?
    By now_i_m_here in forum Web Hosting Forums
    Replies: 2
    Last Post: 12-01-2009, 08:11 AM
  4. Difference between md5 and crypt
    By sanky12ka4 in forum PHP Help
    Replies: 0
    Last Post: 10-08-2009, 07:45 PM
  5. difference between SEO and SEM
    By hiren_mehta007 in forum SEO Forum
    Replies: 7
    Last Post: 06-28-2009, 10:06 PM

Tags for this Thread

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