0

How to use multiple div tags in HTML ?

22nd Jun 2020, 6:21 AM
Krantikaa
Krantikaa - avatar
3 odpowiedzi
+ 3
Use id attribute to each div <div id="h"></div> <div id="m"></div>
22nd Jun 2020, 6:29 AM
Muhammad Galhoum
Muhammad Galhoum - avatar
+ 1
If you want to nest them then you can also nest them like <div> <div> <div> Text </div> </div> </div> Or else write them simply <div>text1</div> <div>text2</div> <div>text3</div>
22nd Jun 2020, 6:43 AM
Ayush Kumar
Ayush Kumar - avatar
0
Thanks 😊
22nd Jun 2020, 6:50 AM
Krantikaa
Krantikaa - avatar