0
tell me about div tag?
its purpose,its attributes,
4 ответов
+ 3
it's used to create different sections/areas on a webpage. classes and ids can be applied. In html5 it is replaced by the article tag.
+ 2
It has a default { display: block } CSS rule. If placed inside a p tag you might have issues with browser compatibility. I suggest never to use div tags inside elements having as default style inline display.
+ 1
thanks...
+ 1
It is not replaced. If you content has semantic use an article/section tag. If you need a tag just for styling then use a div.