+ 1

For which purpose <div> </div> use in html can any one explain this with example

23rd Nov 2021, 2:47 PM
Khurram
Khurram - avatar
6 Respuestas
+ 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.
23rd Nov 2021, 2:55 PM
MATOVU CALEB
MATOVU CALEB - avatar
+ 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.
23rd Nov 2021, 3:16 PM
Nabin Bhatt
Nabin Bhatt - avatar
+ 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
23rd Nov 2021, 4:53 PM
JOKER
JOKER - avatar
0
I got it
23rd Nov 2021, 2:57 PM
Khurram
Khurram - avatar
0
Thanks
23rd Nov 2021, 2:57 PM
Khurram
Khurram - avatar
0
Got your point
23rd Nov 2021, 3:19 PM
Khurram
Khurram - avatar