HTML înseamnă aplicarea semnificației în conținut. Chiar dacă cele mai multe tag-uri HTML aplică semnificația ( face un paragraf, <p><h1> particularizează textul), tag-urile <span> și <div> nu dau semnificații, ceea ce ar fi foarte folositor, dar ele sunt folosite destul de vast în contradicție cu CSS-ul.
Ele sunt folosite pentru a grupa părți ale codului HTML și pentru a sustrage informații din aceste grupări.De cele mai multe ori, aceste două tag-uri au ca atribute ajutătoare ”class” și ”id”, pentru a asocia elementul cu o clasa sau cu o identitate selectivă.
Diferența dintre <span> și <div> este aceea că un element ”span” este ”în linie” și este de obicei utilizat în mici grupuri de linii HTML, în timp ce elementul ”div” (provenind de la diviziune) blochează linia ( ceea ce este echivalent cu pauza dintre linii) și este folosit pentru a grupa secțiunile mai mari de coduri.
<div id=“scissors“>
<p>Asta e o <span class=“hârtie“>nebunie</span></p>
</div>
<div> și în special <span>, nu ar trebui utilizați atât de des. Din acest motiv este binevenită orice altă alternativă. De exemplu, dacă dorești să subliniezi cuvântul ”nebunie” și clasa ”hârtie” este scrisă cu bold, atunci codul ar putea arăta în felul următor:
<div id=“scissors“>
<p>Asta e o<strong class=“hârtie“>nebunie</strong></p>
</div>
Dacă nu ai prea înteles cum funcționează atributele ce definesc clasele și identitățile, vei avea o explicație mai detaliată în Tutorialul CSS pentru intermediari.Tot ce trebuie să reții este că tag-urile <span> și <div> sunt inexpresive!
![header=[] body=[andrew.cornett posted a photo:
Just squeezed out this HTML email in about an hour or so thanks to MailChimp!. ReadyTech HTML Email] andrew.cornett posted a photo:
Just squeezed out this HTML email in about an hour or so thanks to MailChimp!. ReadyTech HTML Email](http://farm4.static.flickr.com/3004/3048902260_14465ef17e_s.jpg)
![header=[] body=[Toni Panayotov posted a photo:
The first concept for the homepage of a school project. Client: Mambo Lounge Nightclub San Francisco CA. mambo_lounge] Toni Panayotov posted a photo:
The first concept for the homepage of a school project. Client: Mambo Lounge Nightclub San Francisco CA. mambo_lounge](http://farm4.static.flickr.com/3251/3047025017_eeef7db1e9_s.jpg)
![header=[] body=[tractorpirate posted a photo:
. www.m7lives.com] tractorpirate posted a photo:
. www.m7lives.com](http://farm4.static.flickr.com/3167/3046291353_4670b108ae_s.jpg)
![header=[] body=[comsodesign88 posted a photo:
planning on a new business card, so im starting to create som mock ups... business card mock up] comsodesign88 posted a photo:
planning on a new business card, so im starting to create som mock ups... business card mock up](http://farm4.static.flickr.com/3030/3046910170_5298b8d0e0_s.jpg)
![header=[] body=[SprittiBee posted a photo:
Who's scared? Looks like he is more than I am.. l-n-c2] SprittiBee posted a photo:
Who's scared? Looks like he is more than I am.. l-n-c2](http://farm4.static.flickr.com/3219/3046074967_077a125c2c_s.jpg)
![header=[] body=[tracystone posted a photo:
Website Design and development for Teahouse Media.
teahousemedia.com. Teahouse Media Website Design] tracystone posted a photo:
Website Design and development for Teahouse Media.
teahousemedia.com. Teahouse Media Website Design](http://farm4.static.flickr.com/3054/3046020827_68efee7d31_s.jpg)
![header=[] body=[Noah and Cat posted a photo:
In the next few months, life and time willing, I plan on starting a news website for the canal community in England, Ireland, Scottland and Wales. This is an in-progress design mock-up of where I'm headed. I'm not quite sure what to do with the bottom bit yet but I'm browsing other news sites for ideas.
The content right now is purely artificial. In most spots anyway.. Towpath Telegraph (In Progress)] Noah and Cat posted a photo:
In the next few months, life and time willing, I plan on starting a news website for the canal community in England, Ireland, Scottland and Wales. This is an in-progress design mock-up of where I'm headed. I'm not quite sure what to do with the bottom bit yet but I'm browsing other news sites for ideas.
The content right now is purely artificial. In most spots anyway.. Towpath Telegraph (In Progress)](http://farm4.static.flickr.com/3183/3045738255_8a8bd11d30_s.jpg)
![header=[] body=[jpguarin posted a photo:
Nueva pagina de VSP*
www.vsp.com.co. www.vsp.com.co] jpguarin posted a photo:
Nueva pagina de VSP*
www.vsp.com.co. www.vsp.com.co](http://farm4.static.flickr.com/3159/3045426395_e83cb3f50f_s.jpg)
![header=[] body=[kpucu.com posted a photo:
Redesign for www.bgstar.eu. BgStar.EU redesign] kpucu.com posted a photo:
Redesign for www.bgstar.eu. BgStar.EU redesign](http://farm4.static.flickr.com/3056/3045346683_ac042695e2_s.jpg)


