div tags | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

div tags

I have a doubt how or when and why should use div tags and how do use them in a website

4th Aug 2018, 9:17 PM
john
john - avatar
4 Réponses
+ 1
Think of the div tags as way to "section" your code
4th Aug 2018, 9:24 PM
Dlite
Dlite - avatar
0
As Yahiko said, div tags are a way to "section" your website. You can use that to reference those different sections in your css styling afterwards or to perform certain tasks on a particular section with javascript. By using div tags it's like dividing your code into custom "sections" and giving them your own meaning.
4th Aug 2018, 10:09 PM
őôŌČő¨őĹőĹő∑Ōā őúŌÖŌÉŌĄőĪőļőĮőīő∑Ōā
őôŌČő¨őĹőĹő∑Ōā őúŌÖŌÉŌĄőĪőļőĮőīő∑Ōā - avatar
0
Ooh ok thanks ūüėä
13th Aug 2018, 6:27 AM
john
john - avatar
0
Same method one uses the tags in html is same way in php right
13th Aug 2018, 6:27 AM
john
john - avatar