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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top