+ 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.
9 odpowiedzi
+ 3
Yes.
+ 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
+ 2
div is block level elements in html.
+ 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
0
Ya i know it but how can I use it
0
Ok to use this i have to know about css.
0
Ok thanks
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!!
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.