jagguy
asked on
correct way use div tags
I am using Dreamweaver and when applying CSS rules I see it doesnt use div tags.
For example applying css rules to some tags I can get
<span class="one">hello</span>
<img src="dd.jpg" class="two"/>
However I could also do the same with same effect
<div class="one">hello</div>
Should I only use div tags for containers?
For example applying css rules to some tags I can get
<span class="one">hello</span>
<img src="dd.jpg" class="two"/>
However I could also do the same with same effect
<div class="one">hello</div>
Should I only use div tags for containers?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It wl depend on what you are trying to do. @hanknight summed it up except you can place your spans inside divs p's (block level). Use spans to style code differently than you style your div.