<DIV> and <SPAN>


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: <DIV> and <SPAN>

  1. #1
    John Knoop Guest

    <DIV> and <SPAN>

    OK, but which to use for images?
    div or span?

    -----Ursprungligt meddelande-----
    Från: Florian Haag [mailto:florianhaag@addcom.de]
    Anslaget den: den 21 november 2000 17:37
    Anslaget i: html
    Konversation: <DIV> and <SPAN>
    Ämne: Re: <DIV> and <SPAN>


    <div> is used for paragraph-like elements, <span> for single words.

    -- Florian Haag
    http://private.addcom.de/haag/fh/

    John Knoop <john@wedoweb.nu> schrieb in im Newsbeitrag:
    9445E7E81450D4119D0D00062945A3C1025B8F@R2D2...
    > What is the difference between <DIV> and <SPAN> ?
    >




  2. #2
    Florian Haag Guest

    Re: <DIV> and <SPAN>

    To have a single image that u can put anywhere on
    your page, use <div><img /></div>. But, AFAIK,
    it will work without <div>, too, just use <img />
    without any container. Once I read this would work
    with NN and MSIE. Does anyone know if it does?

    -- Florian Haag
    http://private.addcom.de/haag/fh/

    John Knoop <john@wedoweb.nu> schrieb in im Newsbeitrag:
    9445E7E81450D4119D0D00062945A3C10263D1@R2D2...
    > OK, but which to use for images?
    > div or span?
    >
    > -----Ursprungligt meddelande-----
    > Från: Florian Haag [mailto:florianhaag@addcom.de]
    > Anslaget den: den 21 november 2000 17:37
    > Anslaget i: html
    > Konversation: <DIV> and <SPAN>
    > Ämne: Re: <DIV> and <SPAN>
    >
    >
    > <div> is used for paragraph-like elements, <span> for single words.
    >
    > -- Florian Haag
    > http://private.addcom.de/haag/fh/
    >
    > John Knoop <john@wedoweb.nu> schrieb in im Newsbeitrag:
    > 9445E7E81450D4119D0D00062945A3C1025B8F@R2D2...
    > > What is the difference between <DIV> and <SPAN> ?
    > >

    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center