Is "li" tag is block level element ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Is "li" tag is block level element ?

9th Aug 2017, 3:37 PM
Giridhar Reddy
Giridhar Reddy - avatar
3 Answers
+ 4
It is default block level element, until you set the 'display' css property to another value ;P
9th Aug 2017, 5:13 PM
visph
visph - avatar
+ 3
yes it is imagine if element can contain any other inline elements in it we call it block level <a> is inline but <form> is block i hope this helps
9th Aug 2017, 3:38 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
- 1
ok thank you
9th Aug 2017, 3:38 PM
Giridhar Reddy
Giridhar Reddy - avatar