2 Answers
New Answer4/30/2018 12:00:58 PM
Rohan Shah2 Answers
New Answerdiv tag is like container in html, which can wrap html elements in it. It is used to group one or more elements together and apply them css. like if ur using div tag to wrap 2-3 p tags together u don't have to style them separately if u specify style in that div tag generally html contains lots of elements so to identify an specific element class attribute is used so we can specifically style it using css u can also use id attribute and style using it both of them can also used to work with javascript
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message