DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   HTML and CSS (http://www.daniweb.com/forums/forum143.html)
-   -   What is DIV & SPAN (http://www.daniweb.com/forums/thread24058.html)

ashishjha54 May 22nd, 2005 8:34 pm
What is DIV & SPAN
 
hello coders,
nowa days i see everybody is using DIV and SPAN in there webpage .i have a little idea about this but i wanna know everything about this.can you tell me where can i get complete information about DIV and SPAN.you can also use this forum to clear my doubt.i wanna know everything about DIV and SPAN.
i also see that people are using
        <tr>
                <th class="thLeft" width="150" height="26" nowrap="nowrap">something</th>
                <th class="thRight" nowrap="nowrap">something</th>
        </tr>

what is this <th> </th> tags for?
please satisfy my hunger for knowledge.
thank you.

tgreer May 23rd, 2005 8:59 am
Re: What is DIV & SPAN
 
DIV is "division", and is a block-level container object. It's used to divide a page into discrete, high-level "sections". For example, if you had a navigational section and content section, each would go into its own "div".

SPAN is an inline container object. It is used to set off elements that appear "within" content. It is mainly used to replace the formatting tags such as <b>, <i>, <em>, and <strong>. Since those are presentational tags, they have been superceded by CSS.

The <th> is "Table Header", and is meant for just that... to specify the column headers of a table.

Complete information on all things HTML, XHTML, etc:

http://www.w3.org/TR/REC-html40/struct/global.html


All times are GMT -4. The time now is 7:49 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC