javascript

  • Thread starter Thread starter vamsi krishna
  • Start date Start date
in message
what is meant by <div> tag in javascript

It is not a javascript element, it part of the HTML markup in the page.
<div> doesn't "do" anything by itself; it is used for containing other html
markup so that it can be treated as a block, typically for assigning
cascading styles to the whole block (or manipulating the whole block from
javascript).
 
Before we'll be bombarded by rightful share of
pointers to another group - you use <div> as:

<div class="comment">No comments</div>

Then, if you've declared a style named comment,
you'll be colored, sized etc. according to it.
 
Back
Top