0

html

hi guys sorry for disturbing but I would like to know why we use the div tag,its importance and what we mean by block level element(i know what it means but i cant grab the concept or the reason why we use it)

24th Nov 2017, 4:59 PM
Louis Utieyin
Louis Utieyin - avatar
2 Answers
+ 4
<div> can be used as sort of a container for a block of code inside it. If you give it an id, you can do stuff with it and with everything that's inside it, by just calling this div by its name. You can change styles, assign actions, make animations and so on. Otherwise, you would have to update all elements separately.
24th Nov 2017, 5:46 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
0
Ahn okay I think I got it. LET'S SAY that it's a syntactic element
24th Nov 2017, 7:05 PM
Louis Utieyin
Louis Utieyin - avatar