By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,838 Members | 1,668 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,838 IT Pros & Developers. It's quick & easy.

Can I use the same div tag multiple times on a page?

P: 2
I am building a product sheet, with a photo (float left) and simple text to the right inside two div tags for a product.

And it repeats with each new product.

Can I just use the same div tag or do I have to copy the original one and rename it 1, 2, 3, etc.?
Feb 3 '11 #1
Share this Question
Share on Google+
3 Replies


drhowarddrfine
Expert 5K+
P: 7,435
A div element is a generic container and can be used any number of times on a page. To identify each div, you can give them a unique 'id' name but each id must not repeat.
Feb 4 '11 #2

Samishii23
100+
P: 246
Any tags can be repeated any number of times as the user pleases.
Feb 5 '11 #3

P: 2
Thank you very much.
Feb 7 '11 #4

Post your reply

Sign in to post your reply or Sign up for a free account.