Closed Thread Icon

Preserved Topic: too much HTML! Pages that link to <a href="https://ozoneasylum.com/backlink?for=17779" title="Pages that link to Preserved Topic: too much HTML!" rel="nofollow" >Preserved Topic: too much HTML!\

 
Author Thread
little osh
Bipolar (III) Inmate

From: Wales, UK
Insane since: Jun 2000

posted posted 07-05-2000 09:30

Can somebody tell me what the difference is between the three HTML tags: <DIV>, <SPAN> and <LAYER>?

I know that <LAYER> is Netscape specific, but still, aren't they just three tags that do practically the same thing? Why can't the functionality of each just be coded into one tag?

Does anyone know?

half this game is ninety percent mental...

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 07-05-2000 11:21

<span> works on the same line. <div> works for different lines.

This way you can use

<span class="1">Hello</span> <span class="2">Again</span>

When doing this you will have the two elements "Hello" and "Again" on the same line, but with different properties.

The <div> on the other hand would effect the entire line. Which may be desireable in some instance, but not in others...

<layer> got me... why design netscape specific...


www.warmage.org

ocb
Bipolar (III) Inmate

From: Dublin, Ireland
Insane since: Jun 2000

posted posted 07-05-2000 17:01

If your a lazy sod like me who hates codeing for the various browsers then check out www.dansteinman.com and look at his web api... it just rocks. Version 2 is in beta at the minute but version one has been used to create many existing web sites (the MTV site uses it ! actually, I don't know if thats any sort of accolade)

« BackwardsOnwards »

Show Forum Drop Down Menu