Simple CSS question

liunx

Guest
I have no idea how to word this, so please bare with me.

On most of my pages I will have 5 of 6 </div> tags. Is there some way I can name them, without using the comment function? (</div><!-- Table Div-->)

Thanks for the Help,

Its sometimes the simplest things that make life the easiest.

Wofenwell you can use a selector : class or id
<div id="divsomthing">
...content
</div>Name the closing tag? No. Probably the best way to handle that is indented formatting.I do indent (You can program without indenting??? :) ), and I do use class and ID(dont really know the difference between them but).

So, there is no way to lable closing tags other then to use comments :(

Oh well.

Wofenid would be for some element that appears one time, classes are for element that appear many times on the same page, as links, paragraphs or secondary heading

oh and yes, many people code without indenting! eew, horrible(dont really know the difference between them but).

an ID can only be used once on 1 webpage while the class can be used multiple times.

But I don't know any other differences either.(probably somthing with scripting since java script uses id for javascript...)isn't that what i just said?hey since it's on this thread, does anyone know where I can find the correct formatting for indenting...i jsut kinda guess...lol :rolleyes:

but nope, there arent any ways to name a closing tag...and using comments are petty helpful in my opinion...but to make them stand out more, you could capitilize the letters and be more specific like

</div><!--END OF TABLE DIV>what do you mean by the correct formatting for indenting ?Indenting is a personal/company preference

</div><!-- END OF TABLE DIV -->
 
Back
Top