+ 4

What and how and where i use div tag?

I am not understand the use of div tag and it's attributes.plz tell me about this.

17th Jan 2020, 12:38 PM
ankit rajput
9 ответов
+ 3
Yes.
18th Jan 2020, 9:54 AM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar
+ 2
Use the searchbar. This question is a duplicate. Kindly delete this post as it is a duplicate. Read more here: https://www.sololearn.com/discuss/1316935/?ref=app
17th Jan 2020, 12:49 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
div is block level elements in html.
18th Jan 2020, 9:33 AM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar
+ 2
You can use it if you know css. It is very useful feature. It is basically used to create parents of elements in html
18th Jan 2020, 9:48 AM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar
0
Ya i know it but how can I use it
18th Jan 2020, 9:38 AM
ankit rajput
0
Ok to use this i have to know about css.
18th Jan 2020, 9:53 AM
ankit rajput
0
Ok thanks
18th Jan 2020, 10:07 AM
ankit rajput
0
Div is a block element in HTML. This tag will break the lines between texts. That's means if you use a div tag and then use it again, The text will display in different lines. If you want to display your text in the same line Just use <span> Tag. Also, Div and Span uses to link CSS. Good luck!!
19th Jan 2020, 6:51 AM
🇮🇱 Mutedly 🇮🇱
🇮🇱 Mutedly 🇮🇱 - avatar
0
Division <div> is a block level element by default and it is used to separate a group of statements and perform special customization and operation on them without affecting the rest of the document. <article> also can be used for such purpose.
19th Jan 2020, 12:06 PM
Omer Hamid
Omer Hamid - avatar