+ 1
For which purpose <div> </div> use in html can any one explain this with example
6 Respostas
+ 3
The div tag is known as Division tag. The div tag is used in HTML to make divisions of content in the web page like (text, images, header, footer, navigation bar, etc). Div tag has both open(<div>) and closing (</div>) tag and it is mandatory to close the tag. The Div is the most usable tag in web development because it helps us to separate out data in the web page and we can create a particular section for particular data or function in the web pages.
1.Div tag is Block level tag
2.It is a generic container tag
3.It is used to the group of various tags of HTML so that sections can be created and style can be applied to them.
As we know Div tag is block-level tag in this example div tag contain entire width. It will be displayed div tag each time on a new line, not on the same line.
+ 2
It is widely used To make different sections on the document. But in HTML5 we use <section> instead of <div> tag. Although you can use div tag to separate section content as well. Maybe I answered your question.
+ 1
I don't understand one thing:
Why you guys not use the QA search bar,
Every time when you try to post a question here, try searching it in the search bar.
https://www.sololearn.com/discuss/1316935/?ref=app
0
I got it
0
Thanks
0
Got your point